home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / spreeets / inst3 / manual.exe / INSTA.DOC
Encoding:
Text File  |  1993-05-28  |  278.9 KB  |  6,313 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.                                     InstaCalc (tm)
  17.                             Abridged Shareware User Manual
  18.                                       Version 4
  19.  
  20.  
  21.  
  22.                            (C) Copyright FormalSoft 1986-93
  23.                                  All Rights Reserved
  24.  
  25.  
  26.  
  27.                                       FormalSoft
  28.                                       PO Box 495
  29.                                Springville, Utah 84663
  30.                                      801-489-3102
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.         No part  of this documentation may  be reproduced in whole  or in part
  47.         without the prior written permission of FormalSoft.
  48.  
  49.  
  50.         Trademarks: FormalSoft and InstaCalc are trademarks of FormalSoft. All
  51.         other brand and product names are  trademarks or registered trademarks
  52.         of their respective companies.
  53.  
  54.  
  55.  
  56.  
  57.         WELCOME TO INSTACALC
  58.         --------------------
  59.         Thank  you for evaluating  InstaCalc, our PC  Magazine Editor's Choice
  60.         award winning spreadsheet.   Although InstaCalc is extremely powerful,
  61.         we are certain you will find it to be the easiest spreadsheet you have
  62.         ever  used.   In  addition,  its  minimal hardware  requirements  make
  63.         InstaCalc an excellent choice for use on laptop computers.
  64.  
  65.         We encourage you to pass copies of this program on to your friends and
  66.         associates, so they too can see the power and ease of InstaCalc.
  67.  
  68.  
  69.  
  70.         LICENSE AGREEMENT
  71.         -----------------
  72.         InstaCalc is distributed as Shareware.   It is not free  software, nor
  73.         is it  in the  public domain.   You  are granted  a  limited (30  day)
  74.         license  to evaluate  InstaCalc.    If  you  want  to  continue  using
  75.         InstaCalc, you can purchase a copy using the form provided on the next
  76.         page.
  77.  
  78.         A single  registered copy  of InstaCalc may  be used in  the following
  79.         situations where only one copy of InstaCalc is running at a time, such
  80.         as:
  81.  
  82.         - by a single user on one work machine and one home machine (where the
  83.         user won't be running two copies at the same time).
  84.  
  85.         - or  on a single machine used by multiple  users (where only one user
  86.         can use InstaCalc at a time).
  87.  
  88.  
  89.         If InstaCalc will be used by more than one user at a time, then a copy
  90.         must  be purchased  for  each machine.   We  offer  site licenses  and
  91.         quantity discounts.  Call us for details.
  92.  
  93.         You  are also  granted  a  limited  license  to  copy  and  distribute
  94.         InstaCalc for evaluation by others on the following conditions:
  95.  
  96.         - You  may NOT charge anything for InstaCalc itself.  You may charge a
  97.         copying fee (not to exceed $8) to cover disks and handling.  
  98.  
  99.         - You may NOT copy the printed documentation in any manner or form.  
  100.  
  101.         - You  may NOT bundle InstaCalc  with any other product  without prior
  102.         written permission from FormalSoft.
  103.  
  104.         -  You  may  NOT distribute  versions  of  InstaCalc  which have  been
  105.         modified in any way.
  106.  
  107.         -  You must  include  ALL  of the  files  which  are distributed  with
  108.         InstaCalc. These files must be ARCHIVED together if  you place them on
  109.         an electronic bulletin board.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.                                           1
  117.  
  118.  
  119.  
  120.  
  121.                             InstaCalc v4 Registration Form
  122.                             ------------------------------
  123.         TO ORDER:
  124.  
  125.         1. Send this form & payment to:    FormalSoft
  126.                                            InstaCalc Registration
  127.                                            P.O. Box 495
  128.                                            Springville, UT 84663
  129.  
  130.         2. Or give us a call at:           801-489-3102 (VISA/MC/AMEX)
  131.  
  132.  
  133.         I  want  to receive  the most  recent version  of InstaCalc,  the full
  134.         printed  manual,   and  to  be  eligible  for  technical  support  and
  135.         discounted upgrades.  Please send me ____ copies of InstaCalc.  I have
  136.         enclosed $49 for each copy ordered, plus $5 shipping and handling.
  137.  
  138.         * Utah residents please add 6.25% sales tax.
  139.         * Foreign orders add $10 for air mail.
  140.  
  141.         Amount enclosed:_____________
  142.  
  143.         *** WE OFFER QUANTITY DISCOUNTS AND SITE LICENSES.  CALL FOR DETAILS.
  144.  
  145.         Disk size:    [ ] 5.25"       [ ] 3.5"
  146.  
  147.         Name:________________________________________________________________ 
  148.  
  149.         Company:_____________________________________________________________
  150.                     
  151.         Address:_____________________________________________________________
  152.                     
  153.         City, State, Zip:____________________________________________________
  154.  
  155.         Country:_____________________________________________________________
  156.                     
  157.         [ ] CHECK (US $ drawn on US bank only)   [ ] VISA/MC   [ ] AMEX
  158.  
  159.         Credit card #_______________________________   Exp date_______________
  160.  
  161.         Signature_____________________________________________________________
  162.  
  163.         Where did you get your copy from?____________________________________
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.                                           2
  181.  
  182.  
  183.  
  184.  
  185.         INSTACALC FEATURES
  186.         ------------------
  187.         InstaCalc  is a state of  the art spreadsheet,  extremely powerful yet
  188.         easy to learn and use.
  189.  
  190.         ****************************************************************
  191.         * And InstaCalc is a PC Magazine Editor's Choice award winner! *
  192.         ****************************************************************
  193.         InstaCalc can be run either  as a standalone spreadsheet, or as  a pop
  194.         up  spreadsheet which  can cut  and paste  your spreadsheet  data with
  195.         other programs.  Below are just a few of InstaCalc's capabilities.
  196.  
  197.         Pop up option uses less than 15K RAM
  198.         Cut and paste with other programs
  199.         Direct import and export of:
  200.              1-2-3 files
  201.              dBase files
  202.              DIF files
  203.              ASCII files
  204.         Powerful macro environment
  205.              Full application language
  206.                   for/next, repeat/until
  207.                   if/else/endif
  208.                   windowing commands
  209.                   moving bar menu systems
  210.                   access to DOS/printer
  211.              Macro editor
  212.              Debugging
  213.                   single stepping
  214.                   conditional breakpoints
  215.              Macro recorder
  216.         Presentation quality graphics
  217.              Bar, stacked bar, line, X-Y, pie, hi-lo, area, ribbon, scatter
  218.              True 3 axis bar, area, and ribbon charts
  219.              Annotate your charts with freeform text and lines
  220.              Supports dot matrix, laser, and color printers *
  221.              Save charts as PCX, Postscript, WPG, CGM, and more *
  222.         Expanded memory support
  223.         File encryption
  224.         File linking
  225.         100 built-in @functions
  226.         Goal seeking
  227.         Auditing
  228.         EGA 43 line support
  229.         Search and replace
  230.         Database entry forms
  231.         Sort on up to 9 keys
  232.         Query worksheet databases
  233.         Query dBase files
  234.         Mouse support
  235.         Visual point & shoot file manager
  236.         Context sensitive help
  237.         Menu system shows all levels of the menu on screen
  238.         Set and view options from full page menus
  239.         Index to function keys across bottom of screen
  240.  
  241.         *Special drivers included with your registration
  242.  
  243.  
  244.                                           3
  245.  
  246.  
  247.  
  248.  
  249.         CONTENTS
  250.         --------
  251.  
  252.         GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . .    2
  253.              INSTALLING INSTACALC . . . . . . . . . . . . . . . . . . . .    2
  254.              HOW TO RUN INSTACALC . . . . . . . . . . . . . . . . . . . .    2
  255.              STARTUP OPTIONS  . . . . . . . . . . . . . . . . . . . . . .    3
  256.              CUSTOMIZING INSTACALC  . . . . . . . . . . . . . . . . . . .    3
  257.               . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .    4
  258.  
  259.         INSTACALC BASICS  . . . . . . . . . . . . . . . . . . . . . . . .    4
  260.              THE WORKSHEET  . . . . . . . . . . . . . . . . . . . . . . .    4
  261.              HOW TO GET HELP  . . . . . . . . . . . . . . . . . . . . . .    5
  262.              MOVING AROUND THE WORKSHEET  . . . . . . . . . . . . . . . .    5
  263.              ENTERING AND EDITING DATA  . . . . . . . . . . . . . . . . .    6
  264.              HOW TO ENTER AND USE FORMULAS  . . . . . . . . . . . . . . .    8
  265.              RELATIVE AND ABSOLUTE CELL REFERENCES  . . . . . . . . . . .   10
  266.              DEFINING A RANGE OF CELLS  . . . . . . . . . . . . . . . . .   11
  267.              BUILT-IN @FUNCTIONS  . . . . . . . . . . . . . . . . . . . .   12
  268.              USING THE COMMAND MENUS  . . . . . . . . . . . . . . . . . .   12
  269.              USING THE FUNCTION KEYS  . . . . . . . . . . . . . . . . . .   13
  270.              SAVING AND RETRIEVING DATA . . . . . . . . . . . . . . . . .   13
  271.              USING THE FILE MANAGER . . . . . . . . . . . . . . . . . . .   14
  272.              CHANGING YOUR SPREADSHEET'S APPEARANCE . . . . . . . . . . .   14
  273.              PRINTING YOUR DATA . . . . . . . . . . . . . . . . . . . . .   16
  274.              GRAPHING YOUR DATA . . . . . . . . . . . . . . . . . . . . .   16
  275.              RECORDING A MACRO  . . . . . . . . . . . . . . . . . . . . .   17
  276.              THE INSTACALC TEXT EDITOR  . . . . . . . . . . . . . . . . .   17
  277.              THE INSTACALC MACRO LANGUAGE . . . . . . . . . . . . . . . .   18
  278.              CUTTING DATA FROM OTHER PROGRAMS . . . . . . . . . . . . . .   18
  279.              PASTING DATA TO OTHER PROGRAMS . . . . . . . . . . . . . . .   19
  280.  
  281.         REFERENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . .   20
  282.              THE FUNCTION KEYS  . . . . . . . . . . . . . . . . . . . . .   20
  283.              INSTACALC COMMAND MENUS  . . . . . . . . . . . . . . . . . .   23
  284.              BUILT-IN FUNCTIONS . . . . . . . . . . . . . . . . . . . . .   49
  285.  
  286.         INSTACALC APPLICATIONS  . . . . . . . . . . . . . . . . . . . . .   84
  287.              CREATING AN APPLICATION  . . . . . . . . . . . . . . . . . .   84
  288.              RUNNING AN APPLICATION . . . . . . . . . . . . . . . . . . .   85
  289.              LANGUAGE DESCRIPTION . . . . . . . . . . . . . . . . . . . .   86
  290.              SPECIAL KEY NAMES  . . . . . . . . . . . . . . . . . . . . .   88
  291.              THE INSTACALC COMMAND ENVIRONMENT  . . . . . . . . . . . . .   89
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.                                           1
  309.  
  310.  
  311.  
  312.  
  313.         GETTING STARTED
  314.         ---------------
  315.  
  316.         INSTALLING INSTACALC
  317.         --------------------
  318.         The  InstaCalc program  is  in a  compressed  form.   An  installation
  319.         program is included which will automatically install InstaCalc on your
  320.         hard disk or another floppy.  To run this program:
  321.  
  322.         1. Turn on your computer.
  323.         2. Insert the InstaCalc disk into drive A.
  324.         3. Type A: at the DOS prompt and press <Enter>.
  325.         4. Type INSTALL and press <Enter>.
  326.         5. Respond to the prompts as directed.
  327.  
  328.  
  329.         HOW TO RUN INSTACALC
  330.         --------------------
  331.         InstaCalc  may  be  run  in  two  different  modes;  as  a  standalone
  332.         spreadsheet, or as a pop up spreadsheet.
  333.  
  334.         Standalone: To run InstaCalc as a standalone spreadsheet:
  335.         - Turn on your computer
  336.         - Change to the directory where the InstaCalc files are
  337.         - Type INSTA
  338.  
  339.         Pop up: To run InstaCalc as a pop up spreadsheet:
  340.         - Turn on your computer
  341.         - Change to the directory where the InstaCalc files are
  342.         - Type INSTA /p
  343.  
  344.         This  will install  InstaCalc into  memory and return  you to  the DOS
  345.         prompt.  InstaCalc will then look  at every keystroke you type  (don't
  346.         worry, it  isn't doing anything  to hurt  them).  InstaCalc  is simply
  347.         looking for a particular key sequence  known as the Hot Key.  The  Hot
  348.         Key is  initially defined to be  <Alt>I, but you can  change this with
  349.         the setup program described later.
  350.  
  351.         Once you have  loaded InstaCalc  into memory, you  may go about  doing
  352.         whatever  you need to do, whether it  is running DOS commands or other
  353.         programs.  Then, whenever you need the power of InstaCalc, simply type
  354.         <Alt>I (or  whatever you have defined the Hot Key to be) and InstaCalc
  355.         will pop into action.
  356.  
  357.         InstaCalc  should be loaded  after memory resident  programs which are
  358.         not called up by a hot key (such as RAM disks, print spoolers, etc).
  359.  
  360.         When InstaCalc is run in pop up  mode, it will only use 15K of memory,
  361.         swapping  the rest  of the  program in  and out  from your  hard disk,
  362.         extended, or expanded memory.   When swapping from disk, there will be
  363.         a delay from the time  you press the Hot Key and when the program pops
  364.         up (and  pops down when  you are done).   The message Swapping  in and
  365.         Swapping out will be displayed at these times.
  366.  
  367.         If you want to unload InstaCalc from memory, simply type INSTA /u
  368.  
  369.  
  370.  
  371.  
  372.                                           2
  373.  
  374.  
  375.  
  376.  
  377.         NOTE  FOR  WORDPERFECT  USERS:  Sometimes when  popping  InstaCalc  up
  378.         through WordPerfect on an EGA or VGA system, the InstaCalc screen will
  379.         have a strange appearance (such as text in italics,  odd colors, etc).
  380.         This is because WordPerfect sometimes uses special "fonts" on  screen,
  381.         and InstaCalc  must use  the current  "font" when it  pops up  through
  382.         WordPerfect.  There are two ways around this:
  383.  
  384.         (1)   In  WordPerfect,  go  into   the  setup  screen,   and  set  the
  385.         Colors/Fonts/Attributes to "Normal Font Only".
  386.  
  387.         or
  388.  
  389.         (2) Run the InstaCalc SETUP.EXE program, and  make sure the colors you
  390.         select  for the  various parts  of  the screen  come from  the left  8
  391.         columns of  the color selection box (the right 8 columns of colors are
  392.         the ones that cause the problems).
  393.  
  394.  
  395.  
  396.         STARTUP OPTIONS
  397.         ---------------
  398.         InstaCalc provides  a variety  of options you  can use when  you first
  399.         start up the program.
  400.  
  401.         Switches  InstaCalc provides the following command line switches:
  402.  
  403.         /Pmemory: Install InstaCalc as a popup spreadsheet.  If you use the /P
  404.         alone, InstaCalc  will allocate 40K of  memory for your data.   If you
  405.         want more (or less) memory to store your data in, then add  the number
  406.         of bytes desired immediately after the /P.
  407.  
  408.         /U: Unload InstaCalc from memory.
  409.  
  410.  
  411.  
  412.         CUSTOMIZING INSTACALC
  413.         ---------------------
  414.         InstaCalc includes a setup  program which allows you to  customize the
  415.         functionality and appearance of  InstaCalc on your system, as  well as
  416.         select a hot key.  To run the setup program, simply type:
  417.  
  418.         SETUP  at the DOS prompt.
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.                                           3
  437.  
  438.  
  439.  
  440.  
  441.         INSTACALC BASICS
  442.         ----------------
  443.  
  444.         THE WORKSHEET
  445.         -------------
  446.         A spreadsheet may be  thought of as a large electronic worksheet, much
  447.         like a piece of paper divided into rows and columns, like this:
  448.  
  449.                      A   B   C   D   E   F   G   H
  450.                    ---------------------------------
  451.                   1|   |   |   |   |   |   |   |   |
  452.                    |---|---|---|---|---|---|---|---|
  453.                   2|   |   |   |   |   |   |   |   |
  454.                    |---|---|---|---|---|---|---|---|
  455.                   3|   |   |   |   |   |   |   |   |
  456.                    |---|---|---|---|---|---|---|---|
  457.                   4|   |   |   |   |   |   |   |   |
  458.                    |---|---|---|---|---|---|---|---|
  459.                   5|   |   |   |   |   |   |   |   |
  460.                    |---|---|---|---|---|---|---|---|
  461.                   6|   |   |   |   |   |   |   |   |
  462.                    |---|---|---|---|---|---|---|---|
  463.                   7|   |   |   |   |   |   |   |   |
  464.                    ---------------------------------
  465.  
  466.         An InstaCalc  worksheet has 256  columns and 4096  rows.  In  order to
  467.         distinguish columns from each other, InstaCalc assigns a letter of the
  468.         alphabet to  each column.  The  first 26 columns are  labeled with the
  469.         letters A through Z.  Since there are 256 columns but only 26 letters,
  470.         the remaining columns must use 2 letters to  identify them.  InstaCalc
  471.         assigns each of the rows in a worksheet a  number from 1 to 4096.  The
  472.         top row in a worksheet is row 1 and the bottom row is row 4096.
  473.  
  474.         The area where a row and a column cross  is known as a cell. Each cell
  475.         in  the  Worksheet is  identified by  the letter  (or letters)  of the
  476.         column it is in,  and the number of the row it is in. For example, the
  477.         cell that  is in column R and row 29  is named R29 (the column letters
  478.         always come before the row number).  Each one of the cells may contain
  479.         some text, a number, or a formula.
  480.  
  481.         Since it is impossible to view all  4096 rows and 256 columns at once,
  482.         the screen display provides a window looking into the Worksheet.   The
  483.         letters  of the  columns which are  on the  screen are  displayed in a
  484.         horizontal bar above  the columns, while the numbers of the rows which
  485.         are on the screen are displayed  in a vertical bar to the left  of the
  486.         rows.
  487.  
  488.         A status line  is located in the  upper left corner of the  screen and
  489.         looks something like this:
  490.  
  491.         A1: (W9) BLANK <Default>
  492.  
  493.         Each  component of the status line tells you certain information about
  494.         the current cell.   A1 tells you that the cell you are currently at is
  495.         in column A and row 1.  (W9) tells you that the column you are in is 9
  496.         characters wide.
  497.  
  498.  
  499.  
  500.                                           4
  501.  
  502.  
  503.  
  504.  
  505.         BLANK tells you that  the cell you  are at is  currently blank.   This
  506.         item tells you what is currently in the cell:
  507.  
  508.         BLANK     - a blank cell
  509.         TEXT      - a line of text
  510.         NUMBER    - a number
  511.         FORMULA   - a formula with a numeric result
  512.         TXTFORM   - a formula with a text result
  513.         FORMAT    - a blank cell which contains formatting information
  514.         ERROR     - a formula which has an error value
  515.  
  516.         The bottom  line of the display is an  index to the function keys <F1>
  517.         through <F10> so you don't have to memorize or look them up.  Pressing
  518.         <Ctrl> changes this  index to  reflect the operation  of the  function
  519.         keys when used in combination with the <Ctrl> key.
  520.  
  521.  
  522.  
  523.         HOW TO GET HELP
  524.         ---------------
  525.         InstaCalc provides extensive online help for its features.  To call up
  526.         this help, simply press the <F1> Help key at any point in the program.
  527.         A  help  screen  will pop  up  which  provides  information about  the
  528.         operation you are attempting.
  529.  
  530.         InstaCalc's  help is context-sensitive.  This  means that InstaCalc is
  531.         always keeping  track of what you are doing so that it can provide the
  532.         proper help  screen when you  ask for it.   For example, if  you press
  533.         <F1> when  you are  trying to copy  a cell,  then a help  screen which
  534.         explains that feature will pop up.
  535.  
  536.         InstaCalc's help is also interactive.  This means that the help screen
  537.         which  pops up  will also  list several  other help screens  which are
  538.         related to what you are doing.  You may view one of these related help
  539.         screens by simply  using the <Left>  and <Right>  keys (or moving  the
  540.         mouse)  to  move the  highlight bar  to the  name  of the  help screen
  541.         desired, and then pressing the <Enter> key or left mouse button, or by
  542.         simply pressing the first letter of the desired help screen's name.
  543.  
  544.         You may also call up a list of help screens called the <HELP INDEX> by
  545.         pressing the <F1>  key a second time, or by  pressing the right button
  546.         on your mouse.
  547.  
  548.         After you have read the help  screens that interest you, simply  press
  549.         the <Esc>  key (or both mouse  keys simultaneously) to return  to what
  550.         you were doing.
  551.  
  552.  
  553.  
  554.         MOVING AROUND THE WORKSHEET
  555.         ---------------------------
  556.         You move  from cell to  cell by moving  the "cell pointer".   The cell
  557.         pointer is a highlighted bar on  the screen which "points to" the cell
  558.         in  the  Worksheet which  is the  current cell.    The address  of the
  559.         current cell is displayed on the top line of the InstaCalc screen.
  560.  
  561.         InstaCalc provides many ways to move the cell pointer.
  562.  
  563.  
  564.                                           5
  565.  
  566.  
  567.  
  568.  
  569.         The arrow keys move the cell pointer up, down, left, or right one cell
  570.         position.
  571.  
  572.         The <Home> key moves the cell pointer to cell A1.
  573.  
  574.         The  <End> key operates in a different  manner than the other movement
  575.         keys.   Pressing  <End> does  not move  the cell  pointer itself,  but
  576.         changes  the way the <Left>, <Right>, <Up>, <Down>, <PgUp>, <PgDn> and
  577.         <Home> keys work.   If  you press the  <End> key and  then one of  the
  578.         arrow keys or <PgUp> or <PgDn>, then the cell pointer will move in one
  579.         of the following ways:
  580.  
  581.         -  If the  cell  pointer is  in  a blank  cell, it  will  move in  the
  582.         direction selected to the first non blank cell.
  583.  
  584.         - If the  cell pointer is  in a non  blank cell, it  will move in  the
  585.         direction selected to the last non blank cell before a blank cell.
  586.  
  587.         If you press the <End> key followed immediately by the <Home> key, the
  588.         cell pointer will  move to the cell  in the lower right  corner of the
  589.         sheet.
  590.  
  591.         If you  want to cancel out the effect of  the <End> key after you have
  592.         pressed it, simply press <End> a second time.
  593.  
  594.         The <Ctrl><Right>  key sequence moves  the cell  pointer one  screen's
  595.         worth of  columns to the  right.   This key sequence  is generated  by
  596.         holding down the <Ctrl> key and pressing <Right>.
  597.  
  598.         The <Ctrl><Left>  key  sequence moves  the cell  pointer one  screen's
  599.         worth  of columns  to the  left.   This key  sequence is  generated by
  600.         holding down the <Ctrl> key and pressing <Left>.
  601.  
  602.         The  <PgUp> key moves the cell pointer  up one screen's worth of rows.
  603.         This key sequence  is generated  by holding down  <Ctrl> and  pressing
  604.         <PgUp>.
  605.  
  606.         The <PgDn> key moves the cell pointer down one screen's worth of rows.
  607.         This key sequence  is generated  by holding down  <Ctrl> and  pressing
  608.         <PgDn>.
  609.  
  610.         The  <F5>  key  moves  the  cell  pointer  anywhere  you  tell it  to.
  611.         InstaCalc will ask you which cell you want to go to, and you just type
  612.         in the cell name and hit <Enter>.
  613.  
  614.         In addition to  the various movement keys, InstaCalc provides built-in
  615.         mouse support.   If  you have  a mouse and  have installed  your mouse
  616.         driver before running InstaCalc, then you can move the cell pointer by
  617.         simply moving the mouse in the direction you want to go.
  618.  
  619.  
  620.  
  621.         ENTERING AND EDITING DATA
  622.         -------------------------
  623.         You can enter numbers or text into any of the cells in  the Worksheet.
  624.         Just  move the cell pointer to the cell  you want to enter a number or
  625.         text  in,  and type  the number  or text.    You may  enter up  to 240
  626.  
  627.  
  628.                                           6
  629.  
  630.  
  631.  
  632.  
  633.         characters into  each cell.  The  number or text will  be entered into
  634.         the cell  as soon  as you press  <Enter> or one  of the  movement keys
  635.         (<Up>, <Down>, <Left>,  <Right>, <PgUp>,  or <PgDn>).   If you  finish
  636.         entering the data using the <Enter> key, the cell pointer will  remain
  637.         positioned at  the same cell.   If you finish entering  the data using
  638.         one of  the movement keys, the  data will be entered  into the current
  639.         cell,  and then  the cell  pointer will  move to  another cell  in the
  640.         direction you specified.
  641.  
  642.         Numbers: A number  can range in  value from -10^37  to 10^37, and  can
  643.         have up to 11 significant places.  You can enter a number into  a cell
  644.         using either  standard notation  (like 12.345) or  scientific notation
  645.         (like 1234.5e-2).
  646.  
  647.         Text: If  you enter a line of text which contains more characters than
  648.         the column is  wide, it will  spill over into  adjacent cells (if  the
  649.         adjacent  cells are blank).  If the  adjacent cells contain data, then
  650.         the extra  characters in the text string will be hidden from view (but
  651.         they  will still  be in  the cell).   If  you want  to see  the entire
  652.         string, you must widen the column containing the text.
  653.  
  654.         The  way  your text  is  displayed  in a  cell  depends  on the  first
  655.         character of the  text.  There are four (4)  possible characters which
  656.         can precede  your text and which affect the way the text is displayed.
  657.         These characters are:
  658.  
  659.         ' causes the text to be left justified in the cell
  660.         " causes the text to be right justified in the cell
  661.         ^ causes the text to be centered in the cell
  662.         \ causes the next character to be repeated
  663.  
  664.         If you enter some text without  one of the above special characters as
  665.         the  first character,  InstaCalc will  automatically place  the global
  666.         justify character on the text for you.  You can select  or change this
  667.         global justify  character with the  /Worksheet Justify command  on the
  668.         main menu.  Once the text has been entered into a cell, you may change
  669.         the justification using either the /Cell Justify or the /Range Justify
  670.         commands (or use the <F2>Edit function key to enter edit mode and just
  671.         change the justification character to the one you want).
  672.  
  673.         Editing: If you need  to change an entry in a cell,  but don't want to
  674.         retype the entire thing,  InstaCalc provides the ability to  edit your
  675.         entry. Simply move the  cell pointer to the cell you want to edit, and
  676.         press  the <F2> Edit key.   If there is anything  in the cell to edit,
  677.         InstaCalc  will enter its  editing mode.   Also, if you  make an error
  678.         when  entering  a formula  this  editing  capability  will  be  called
  679.         automatically.
  680.  
  681.         When you are in edit mode, the following editing keys are available:
  682.  
  683.         <Left>         moves the cursor one character to the left.
  684.         <Right>        moves the cursor one character to the right.
  685.         <Home>         moves the cursor to the first character.
  686.         <End>          moves the cursor to the last character.
  687.         <Ctrl><Right>  moves the cursor one word to the right.
  688.         <Ctrl><Left>   moves the cursor one word to the left.
  689.  
  690.  
  691.  
  692.                                           7
  693.  
  694.  
  695.  
  696.  
  697.         <BkSp>         deletes the  character to  the left  of the cursor  and
  698.                        shifts the following characters in the line to the left
  699.                        to fill in the empty space.
  700.  
  701.         <Ctrl><BkSp>   deletes  the  entire line.   This  is  not the  same as
  702.                        erasing  the cell.  The cell will still take up memory,
  703.                        but it will contain a blank  string.  To erase the cell
  704.                        completely, use the /Cell Erase command.
  705.  
  706.         <Del>          deletes the character underneath the cursor  and shifts
  707.                        the following  characters in  the line  to the  left to
  708.                        fill in the empty space.
  709.  
  710.         <Ins>          toggles  between insert  and overwrite modes.  When you
  711.                        are in insert mode, typing  a character will insert the
  712.                        new  character  into the  line at  the point  where the
  713.                        cursor is. The character under the cursor and  those to
  714.                        the right of  the cursor  are shifted to  the right  to
  715.                        make room  for  the  new character.  When  you  are  in
  716.                        overwrite  mode, typing  a character  will replace  the
  717.                        character under the cursor with the new character.
  718.  
  719.                        When  you are  in insert  mode, the  cursor will  be an
  720.                        underline.   In  overwrite mode  the cursor  will be  a
  721.                        solid block.
  722.  
  723.  
  724.  
  725.         HOW TO ENTER AND USE FORMULAS
  726.         -----------------------------
  727.         One  of the most useful features of  any spreadsheet is the ability to
  728.         perform  calculations using  the  numbers and  text  entered in  other
  729.         cells.  This is  done by entering a formula  into a cell.  To  enter a
  730.         formula, you simply  move the cell  pointer to the  cell you want  the
  731.         formula to be in, type the  formula, then press <Enter>.  When a  cell
  732.         contains  a  formula,  it will  display  the  value  that the  formula
  733.         evaluates to, rather than the formula itself.
  734.  
  735.         An InstaCalc formula must begin with an equal sign '=' and may be made
  736.         up  of numbers (or text in some  cases), references to values in other
  737.         cells, built-in  functions, and mathematical, logical,  and comparison
  738.         operators.
  739.  
  740.         Example: Let's say you have  a number in cell  B5 and another in  cell
  741.         C6, and you would  like to add these two numbers and  place the result
  742.         in  cell A4.   Simply  move the cell  pointer to  A4, and  type in the
  743.         following formula: =B5+C6 (followed by <Enter>).  Cell A4 now contains
  744.         the  formula  you  entered, but  it  will display  the  result  of the
  745.         formula.  If  you later  change the  number in  either B5  or C6,  the
  746.         formula  in  A4  will be  recalculated  and  the  new  value  will  be
  747.         displayed.
  748.  
  749.         You can use  the following operators in a formula (a  and b can be any
  750.         number, cell reference, function, or formula):
  751.  
  752.         Mathematical
  753.         a+b  Addition
  754.  
  755.  
  756.                                           8
  757.  
  758.  
  759.  
  760.  
  761.         a-b  Subtraction
  762.         a*b  Multiplication
  763.         a/b  Division
  764.         a^b  Exponentiation
  765.  
  766.         Logical
  767.         a&b  And (is true only if a is true AND b is true)
  768.         a|b  Or (is true is a is true OR b is true)
  769.         ~b   Not (false if b is true, and true if b is false)
  770.  
  771.         Comparison
  772.         a=b  is true if a is equal to b
  773.         a<>b is true if a is NOT equal to b
  774.         a<b  is true if a is less than b
  775.         a>b  is true if a is greater than b
  776.         a<=b is true if a is less than or equal to b
  777.         a>=b is true is a is greater than or equal to b
  778.  
  779.         You can also use the comparison operators to compare text strings with
  780.         each other.   Two strings  are considered equal  if they are  the same
  781.         length, and  contain the same  characters in the  same order.   String
  782.         comparisons  are case  insensitive, which means  that two  letters are
  783.         considered the same regardless of whether  one is uppercase and one is
  784.         lowercase.  For  example, the string Test  is considered equal to  the
  785.         string test.
  786.  
  787.         In addition, the + operator can also be used to concatenate 2 strings.
  788.         For example, the formula:
  789.  
  790.         ="This is"+" a test"
  791.  
  792.         returns the string This is a test.
  793.  
  794.         If  you  enter a  formula  which  uses  more  than one  operator,  the
  795.         operations  are   always  performed   in  a  specific   order  (called
  796.         precedence).  The order of precedence is:
  797.  
  798.         1. Exponentiation                  ^ 
  799.         2. Negation                        -
  800.         3. Multiplication and Division     *   /
  801.         4. Addition and Subtraction        +   -
  802.         5. Comparison                      =   <   >   <=   >=   <>
  803.         6. Not                             ~
  804.         7. And/Or                          &   |
  805.  
  806.         where exponentiation is performed before negation and so on.
  807.  
  808.         If  you want to  change the order  in which operations  are performed,
  809.         then you  must use parentheses in your formulas.  Operations which you
  810.         place  in  parentheses  will be  performed  before  those  outside the
  811.         parentheses.  For example, the formula
  812.  
  813.         =2+3*4
  814.  
  815.         evaluates as 14  (not 20) because the multiply has a higher precedence
  816.         than the  addition.  If you  want the addition to  be performed first,
  817.         then use parentheses to make the equation look like
  818.  
  819.  
  820.                                           9
  821.  
  822.  
  823.  
  824.  
  825.         =(2+3)*4
  826.  
  827.         In addition to typing cell references in formulas, you  can also enter
  828.         cell references by  pointing to them  with the cell  pointer.  At  any
  829.         point in entering a formula where a cell reference is allowed, you can
  830.         simply  press any of the cell pointer  movement keys to begin pointing
  831.         to a cell or range  of cells.  The address of the cell  which the cell
  832.         pointer is  on will  appear  in the  formula.   As you  move the  cell
  833.         pointer  around,  the reference  in the  formula  will be  adjusted to
  834.         reflect the new position of the cell pointer.
  835.  
  836.         When the cell  pointer is  highlighting the cell  reference you  want,
  837.         either press the <Enter> key or the  character you want to immediately
  838.         follow the  cell  reference.    If you  press  the  <Enter>  key,  the
  839.         reference will be  entered and you may continue  to enter the formula.
  840.         If  you press another key, the reference  and the key you pressed will
  841.         be entered  on the  formula line,  and you  may continue entering  the
  842.         formula. 
  843.  
  844.         If you change  your mind about  pointing to a  cell reference,  simply
  845.         press the  <Esc> key and you will be returned to formula entry without
  846.         any cell reference being entered.
  847.  
  848.         If you have named any cells with the /Range Name command, you may also
  849.         select a  cell or range  reference from  a list  of these  references.
  850.         Simply press the <F3> key when you want to select a named range, and a
  851.         menu will  pop up which lists  all the currently  defined range names.
  852.         You can  then select the  range name you want,  and it will  be placed
  853.         into  your formula for you.   The <F3> key will only  pop up the range
  854.         name list when it is legal to enter a cell or range reference.
  855.  
  856.         If you enter a formula which InstaCalc can't evaluate, the formula you
  857.         entered will be displayed on the command line and the editing facility
  858.         will  be invoked.   The cursor  will be  placed near  the part  of the
  859.         formula which InstaCalc didn't like, and you may fix the formula using
  860.         the editing commands.
  861.  
  862.         If you  enter (or edit)  a formula and  the word  CIRC appears in  the
  863.         upper  right corner  of the  screen, this  means a  circular reference
  864.         exists in your  worksheet.  A circular reference means  that a formula
  865.         in your  worksheet depends on  the value  of the cell  it is in.   For
  866.         example, if cell A1 contains the formula =2*A1, then the  formula must
  867.         use  the current value of cell A1  to calculate the next value of cell
  868.         A1.  If  you have a circular reference, the status window (<Ctrl><F8>)
  869.         will tell you which cell it is.
  870.  
  871.  
  872.  
  873.         RELATIVE AND ABSOLUTE CELL REFERENCES
  874.         -------------------------------------
  875.         When a formula references  another cell, there are two  different ways
  876.         that the cell can be  referenced; absolute and relative.  The  purpose
  877.         of relative  and absolute references is to  let InstaCalc know what to
  878.         do when moving formulas from cell to cell.
  879.  
  880.         It is  easy to  distinguish between  an absolute  and a  relative cell
  881.         reference.  An absolute  cell reference uses the $ character  in front
  882.  
  883.  
  884.                                           10
  885.  
  886.  
  887.  
  888.  
  889.         of each of its coordinates, like $A$1, while a relative reference uses
  890.         no special characters, like A1.
  891.  
  892.         Absolute: An absolute cell reference in a formula points to the  exact
  893.         same cell, regardless of where the formula is moved or copied to.
  894.  
  895.         Relative: A  relative cell reference in  a formula points to  the cell
  896.         which is a certain number of rows and columns away.  If the formula is
  897.         moved, the new  relative cell reference  will be adjusted to  point to
  898.         the cell the same number of rows and columns away from the new formula
  899.         location.
  900.  
  901.         It doesn't matter  whether a  cell reference is  absolute or  relative
  902.         when a  formula is evaluated;  the result will  be the same  in either
  903.         case.   For example, the  formula =2*A1  will have the  same value  as
  904.         =2*$A$1.    You can have both absolute and relative references  in the
  905.         same equation if you want.
  906.  
  907.  
  908.  
  909.  
  910.         DEFINING A RANGE OF CELLS
  911.         -------------------------
  912.         Many of  InstaCalc's commands can operate  on more than one  cell at a
  913.         time.  These commands will  usually ask you to define a range of cells
  914.         to perform the  command on.  A reference to a  range is made up of the
  915.         cells at  opposite corners of the range separated by two periods.  For
  916.         example, the range  reference A1..Z20  contains all the  cells in  the
  917.         range bordered by columns A through Z and rows 1 through 20.
  918.  
  919.         When a  command  asks you  to define  a range  of cells,  there are  5
  920.         different options.
  921.  
  922.         - You can simply type in the range reference.
  923.  
  924.         - You can type  in the name of  a cell surrounded by  square brackets.
  925.         InstaCalc will read  the name  of the range  out of  that cell.   This
  926.         option allows your  application programs to indirectly  supply a range
  927.         reference to a command.
  928.  
  929.         Example: If cell  B5 contains  the string 'G1..J10,  then typing  [B5]
  930.         when you  are asked to define a range will  cause InstaCalc to use the
  931.         range G1..J10 for the command.
  932.  
  933.         - If you  have named a  range using the  /Range Name command,  you may
  934.         simply type in the name.
  935.  
  936.         Example:  If you assigned  the name COSTS  to the range  G1..J10, then
  937.         typing COSTS when you are asked to define a range will cause InstaCalc
  938.         to use the range G1..J10 for the command.
  939.  
  940.         -  Pressing the  <F3>  Range key  will  bring up  a  menu  of all  the
  941.         currently defined range names.  You may pick a range from this list by
  942.         highlighting the name and pressing the <Enter> key.  If there are more
  943.         than 16 range names defined, you may press the <PgUp>  and <PgDn> keys
  944.         to view more range names.
  945.  
  946.  
  947.  
  948.                                           11
  949.  
  950.  
  951.  
  952.  
  953.         - You can highlight the  range on screen using the cursor keys.   When
  954.         you are defining a  range, all the visible cells in  the range will be
  955.         highlighted on the screen.  On the command line you will see  either a
  956.         single cell reference  or a range reference.   A single cell reference
  957.         means  that an  anchor cell  has  not been  selected.   In this  case,
  958.         pressing a movement key simply  moves the cell pointer to a  new cell,
  959.         but does not highlight (or define) any other cells.  If an anchor cell
  960.         has been  selected  then all  cells between  the anchor  cell and  the
  961.         current cell are defined (and highlighted if visible).
  962.  
  963.         You can use any of the movement keys (including <F5> GoTo) to move the
  964.         cell pointer  when highlighting a  range of  cells.  In  addition, the
  965.         following keys are active when defining a range:
  966.  
  967.         <Enter> This key causes all the cells in the range on the command line
  968.         to  be defined. If only a single  cell reference is displayed when you
  969.         press <Enter>, then only that cell will be defined.
  970.  
  971.         . The period key sets the anchor to the current cell. If an anchor was
  972.         already set before you pressed the period, then it is  released before
  973.         the new one is set.
  974.  
  975.         <Esc> This key  releases the anchor if it is  set. Pressing <Esc> when
  976.         the anchor  is not set cancels the range selection, and returns you to
  977.         whatever you were doing before you were asked to define a range.
  978.  
  979.         <F4> This  key cycles the range cell references among the absolute and
  980.         relative  types. If  no anchor  is set  then the  first  coordinate is
  981.         adjusted.  If the  anchor  has  been set  then  <F4>  will adjust  the
  982.         non-anchor reference.
  983.  
  984.  
  985.  
  986.  
  987.  
  988.         BUILT-IN @FUNCTIONS
  989.         -------------------
  990.         InstaCalc  provides  built-in functions  which  you  can use  in  your
  991.         formulas.  These built-in  functions each begin with the  character @,
  992.         and are  often called at functions.   A list of these  functions is in
  993.         Built-In Functions in the reference section of this manual.
  994.  
  995.  
  996.  
  997.  
  998.         USING THE COMMAND MENUS
  999.         -----------------------
  1000.         When you  want to execute a  command in InstaCalc, it  will usually be
  1001.         through InstaCalc's menu system.  A menu is simply a  list of commands
  1002.         which you can pick from.   Through the menus you can manipulate cells,
  1003.         ranges,  or the  entire  Worksheet, graph  or  print data,  manipulate
  1004.         files, or even temporarily exit to the operating system.
  1005.  
  1006.         To bring up InstaCalc's  menu system, you simply press the  / key.  If
  1007.         you are  using a mouse, then you may also  press the left mouse button
  1008.         to bring up the menu.
  1009.  
  1010.  
  1011.  
  1012.                                           12
  1013.  
  1014.  
  1015.  
  1016.  
  1017.         The menu  system uses a sliding  bar to show your choices.   There are
  1018.         three ways you can choose an option:
  1019.  
  1020.         -  Press  the  <Left>  or  <Right>  key  until  the  sliding  bar   is
  1021.         highlighting the  option you  want.   Then press <Enter>  to make  the
  1022.         choice.   The <Home>  key can be  pressed to highlight  the first menu
  1023.         choice,  and pressing  the  <End> key  will  highlight the  last  menu
  1024.         choice.
  1025.  
  1026.         - If you are using a mouse, you may move the sliding bar by moving the
  1027.         mouse  back and  forth.   Move  the  mouse until  the  sliding bar  is
  1028.         highlighting the option you want.  Then press the left mouse button to
  1029.         make the choice.
  1030.  
  1031.         -  As a shortcut  you can simply  press the highlighted  letter of the
  1032.         desired item (usually the first character) to select that option.
  1033.  
  1034.         A help  line appears above  the main  menu.  This  line describes  the
  1035.         highlighted menu option.  When you move the sliding bar to a new item,
  1036.         this help line will  change to display a line of  help about the newly
  1037.         highlighted item.
  1038.  
  1039.         When you choose  an option from  the menu, a new  submenu will pop  up
  1040.         which works the same as the main menu.  As each new submenu is chosen,
  1041.         the  previous menus remain on-screen,  providing you with  a "tree" of
  1042.         your commands.  To go back one  level, simply press the <Esc> key  (or
  1043.         the right  mouse button).  To  clear all the menus from  the screen at
  1044.         once, press the <BkSp> key (or both mouse buttons simultaneously.
  1045.  
  1046.         A list of menu commands can be found in InstaCalc Command Menus in the
  1047.         reference section of this manual.
  1048.  
  1049.  
  1050.  
  1051.         USING THE FUNCTION KEYS
  1052.         -----------------------
  1053.         Several of InstaCalc's commands are assigned to one of the 10 function
  1054.         keys instead  of or in addition  to the command menus.   Several other
  1055.         commands are also assigned to one of the function keys with the <Ctrl>
  1056.         key  pressed.  To execute one of  these commands, simply hold down the
  1057.         <Ctrl> key and then press the appropriate function key.
  1058.  
  1059.  
  1060.  
  1061.         SAVING AND RETRIEVING DATA
  1062.         --------------------------
  1063.         As you are creating and using spreadsheets, your data is stored in the
  1064.         memory  of  your  PC.   You  should store  your  spreadsheets  on disk
  1065.         periodically throughout the day  or session and definitely at  the end
  1066.         of  each day.   In  the  event of  a  power outage  or  if you  should
  1067.         forgetfully turn off the machine before a save has been done, the data
  1068.         entered since the last save to disk is lost.
  1069.  
  1070.         Saving: You can save your worksheet to  a file on disk using the /File
  1071.         Save  command.   If  you  just  want  to save  a  small  part of  your
  1072.         spreadsheet, the /File Xtract command will provide that capability.
  1073.  
  1074.  
  1075.  
  1076.                                           13
  1077.  
  1078.  
  1079.  
  1080.  
  1081.         Retrieving: When  you want  to  read a  file off  the  disk back  into
  1082.         memory, you should use the /File Retrieve command.
  1083.  
  1084.         Importing: The /File  Import command lets you bring  in data from just
  1085.         about any source and use it in your spreadsheet.  InstaCalc can import
  1086.         data from Lotus 1-2-3 (WKS and WK1), dBase II/III/III+ , DIF and ASCII
  1087.         files.
  1088.  
  1089.         Exporting: InstaCalc can export its data in several different formats,
  1090.         and  most software  packages are  capable of reading  at least  one of
  1091.         them.   InstaCalc can export Lotus  1-2-3 (in two forms,  WKS or WK1),
  1092.         dBase II or dBase III or III+, DIF, or ASCII files.
  1093.  
  1094.  
  1095.  
  1096.         USING THE FILE MANAGER
  1097.         ----------------------
  1098.         InstaCalc provides many features designed to simplify its use.  One of
  1099.         these  features is the  Visual File Manager.   The File Manager allows
  1100.         you to  manipulate files, directories,  and drives by  simply pointing
  1101.         and selecting.  It may be accessed by two methods.
  1102.  
  1103.         - Any time  you are asked  for a file name,  pressing the <Enter>  key
  1104.         without a file name will bring the File Manager forward to assist you.
  1105.  
  1106.         - To access the complete listing of files, select /File Files from the
  1107.         command menu.
  1108.  
  1109.  
  1110.         CHANGING YOUR SPREADSHEET'S APPEARANCE
  1111.         --------------------------------------
  1112.         InstaCalc  lets you change the way numbers are displayed on the screen
  1113.         by  assigning a  "format" to  cells.   You  might  set a  cell to  the
  1114.         Currency format, for example, so that the number in that  cell will be
  1115.         displayed with a  leading dollar sign.  Changing the  format of a cell
  1116.         does not change  the value  stored in  the cell,  only the  way it  is
  1117.         displayed on the screen (and printouts).
  1118.  
  1119.         Normally, when you enter data into a  cell, the cell will take on  the
  1120.         global  (Worksheet) format.    You  can see  what  this  format is  by
  1121.         pressing  <Ctrl><F8> to  bring up  the status  window.   The Worksheet
  1122.         format may be changed by using the /Worksheet Format command.
  1123.  
  1124.         The format of an individual cell may be changed using the /Cell Format
  1125.         command, and the format  of a range of cells may be  changed using the
  1126.         /Range Format command.  You should use  care when formatting ranges of
  1127.         blank cells, because formatted cells use up memory, even if the cells'
  1128.         contents are blank.
  1129.  
  1130.         A cell may be set to any of the following formats:
  1131.  
  1132.         General   The value is  displayed with  only the  necessary number  of
  1133.                   decimal places.
  1134.  
  1135.         Currency  The  value is displayed with  a preceding dollar  sign and a
  1136.                   selected  number  of  decimal  places.    If  the  value  is
  1137.                   negative, the  value is enclosed in  parentheses rather than
  1138.  
  1139.  
  1140.                                           14
  1141.  
  1142.  
  1143.  
  1144.  
  1145.                   displayed with a negative sign.  There are two sub-options:
  1146.  
  1147.                   Comma     A comma will be inserted every three whole digits.
  1148.                             (Example: $103,297.25)
  1149.  
  1150.                   NoComma   No comma is inserted in the number.
  1151.  
  1152.  
  1153.         Fixed     The  value  is displayed  with  a  fixed  number of  decimal
  1154.                   places.   Values  which are  very large  or very  small will
  1155.                   appear  in  scientific  notation.     Four  sub-options  are
  1156.                   available:
  1157.  
  1158.                   Comma     A comma will be  inserted every three whole digits
  1159.                             (Example:  12,345.67).     Negative  numbers   are
  1160.                             preceded by a negative sign.
  1161.  
  1162.                   NoComma   No  comma is  inserted  in the  number.   Negative
  1163.                             numbers are preceded by a negative sign.
  1164.  
  1165.                   A ()      No  comma is  inserted  in the  number.   Negative
  1166.                             numbers are enclosed in parentheses.
  1167.  
  1168.                   B (,)     A comma will be inserted every three whole digits.
  1169.                             Negative numbers are enclosed in parentheses.
  1170.  
  1171.         Percent   The value is displayed  as a percentage with a  fixed number
  1172.                   of  decimal places.  The value is  multiplied by 100, and is
  1173.                   displayed with a  trailing percent sign %.   Two sub-options
  1174.                   are available:
  1175.  
  1176.                   Comma     A comma will be inserted every three whole digits.
  1177.                             (Example: 1,024%)
  1178.  
  1179.                   NoComma   No comma is inserted in the number.
  1180.  
  1181.         Science   The value is  displayed in exponential  form, and shows  the
  1182.                   power of  10 that  the number  must be multiplied  by.   For
  1183.                   example, 1.78E+07 means 1.78 times 10^7.
  1184.  
  1185.         Time      A time number (usually provided by one of the InstaCalc time
  1186.                   functions) is displayed in one of two ways.
  1187.  
  1188.                   AM/PM     The  time appears in the a.m. or p.m. form.  Thus,
  1189.                             5:00 in the evening appears as 5:00 p.m.
  1190.  
  1191.                   Military  The time appears  as it would on  a 24-hour clock.
  1192.                             Thus, 5:00 in the evening appears as 17:00.
  1193.  
  1194.         Date      A date number (usually provided by one of the InstaCalc date
  1195.                   functions) is displayed in one of five ways.
  1196.  
  1197.                   dd-mmm-yy      June 10, 1960 appears as 10-Jun-60.
  1198.                   dd-mmm         June 10, 1960 appears as 10-Jun.
  1199.                   mmm-yy         June 10, 1960 appears as Jun-60.
  1200.                   mm/dd/yy       June 10, 1960 appears as 06/10/60.
  1201.                   month dd, yyyy June 10, 1960 appears as June 10, 1960.
  1202.  
  1203.  
  1204.                                           15
  1205.  
  1206.  
  1207.  
  1208.  
  1209.         Hidden    The value will not be displayed on the screen.  If you later
  1210.                   want to  unhide a hidden cell,  simply set it to  any of the
  1211.                   other formats.
  1212.  
  1213.         Label     All formulas (rather than their values) will be displayed on
  1214.                   screen.
  1215.  
  1216.         Reset     Resets the cell to the default format.
  1217.  
  1218.  
  1219.         If the formatted  value contains more characters than the width of the
  1220.         column  it is  in,  the cell  display  will be  filled with  a  row of
  1221.         asterisks  like *******.   You can  fix this  condition in  one of two
  1222.         ways.
  1223.  
  1224.         - Select a display format for the cell which requires fewer characters
  1225.         to display (or reduce the number  of digits after the decimal point to
  1226.         be displayed).
  1227.  
  1228.         - Increase the width  of the column so the formatted  cell will fit in
  1229.         it.  You can do this with the /Cell Width command.
  1230.  
  1231.  
  1232.  
  1233.         PRINTING YOUR DATA
  1234.         ------------------
  1235.         InstaCalc allows  you to print out the data you have entered and gives
  1236.         you control over what is printed and  how the printout looks.  You can
  1237.         print your entire  worksheet or  any portion of  it, including  border
  1238.         rows and columns.
  1239.  
  1240.         Just define the range to print  with the /Print Block command, set any
  1241.         options using the /Print Options command,  then send the data to  your
  1242.         printer with the /Print Go command.
  1243.  
  1244.         More details on printing is available in the reference section of this
  1245.         manual.
  1246.  
  1247.  
  1248.  
  1249.         GRAPHING YOUR DATA
  1250.         ------------------
  1251.         Once your  data has  been entered  InstaCalc  can provide  you with  a
  1252.         graphic representation of that data in only a few keystrokes.
  1253.  
  1254.         For example, if you wanted to print a bar graph of your data:
  1255.  
  1256.         1. Select /Graph from the main menu to begin.
  1257.  
  1258.         2. Select the  Type option.   A menu  will appear  from which you  may
  1259.         select the graph type.  Select Bar from the menu.  Then press <ESC> to
  1260.         return to the graph menu.
  1261.  
  1262.         3. Next, you must tell  InstaCalc what data you wish to  have graphed.
  1263.         This is  done by defining  a range  of data for  each axis.   The menu
  1264.         allows you to  define the range of data to graph  on the X axis and up
  1265.         to 6 data ranges  to graph along the Y axis.  These ranges are named A
  1266.  
  1267.  
  1268.                                           16
  1269.  
  1270.  
  1271.  
  1272.  
  1273.         through F on the menu.
  1274.  
  1275.         4.  You may add  titles, labels, and  legends to your  graph using the
  1276.         Options selection.
  1277.  
  1278.         5. You can now view your graph  by selecting View from the menu.  When
  1279.         you  are satisfied with the choices that  you have made, you may Print
  1280.         your graph.
  1281.  
  1282.  
  1283.  
  1284.         RECORDING A MACRO
  1285.         -----------------
  1286.         Although  InstaCalc's  macro language  is  powerful  enough to  create
  1287.         sophisticated  business applications,  there are  many times  when you
  1288.         will  want to  simply repeat a  sequence of keystrokes  over and over.
  1289.         InstaCalc's Macro Recorder  provides an  easy way to  create and  play
  1290.         back often repeated  key sequences.  The macro recorder  allows you to
  1291.         assign a  sequence of keystrokes to  a single key, and  when you press
  1292.         that  single  key,  it  will automatically  play  back  the  keystroke
  1293.         sequence for you.
  1294.  
  1295.         To begin recording a macro, you simply press the <Ctrl><F10> key.  You
  1296.         then press the key you want  to assign the macro to, and the  word REC
  1297.         will begin flashing in the  upper right corner of the screen.  As long
  1298.         as  REC  is  flashing,  InstaCalc  will  be  memorizing   any  further
  1299.         keystrokes you  type.  When you want to stop recording, just press the
  1300.         <Ctrl><F10> key again.  Your macro will be stored in a file whose name
  1301.         corresponds to  the key  you assigned  the macro to.   For  example, a
  1302.         macro assigned to <Ctrl>T would be named CTRLT.MAC.
  1303.  
  1304.         Later,  when you press <Ctrl>T, InstaCalc will look for the macro file
  1305.         CTRLT.MAC, and play  back the keystrokes which  are saved there.   You
  1306.         can  assign a macro to just about  any key which isn't already defined
  1307.         and used by InstaCalc.  For example, you can't redefine the arrow keys
  1308.         to do something  else, but you  can assign other keys  to do the  same
  1309.         thing as the arrow keys.  
  1310.  
  1311.  
  1312.  
  1313.         THE INSTACALC TEXT EDITOR
  1314.         -------------------------
  1315.         InstaCalc  provides a simple text  editor which you  can use to create
  1316.         and edit your  application programs.  This editor can  be called up in
  1317.         two different ways.
  1318.  
  1319.         - The /Macro  Edit command will ask you for the  name of a macro.  You
  1320.         may enter a file name, or press <Enter> to select a file from the file
  1321.         manager.  You will then be placed in the InstaCalc text editor.
  1322.  
  1323.         - You may  press <F5> when you  are using the  /File Files command  to
  1324.         edit the highlighted file.
  1325.  
  1326.         Details on  the Text Editor are provided in the /Macro Edit section of
  1327.         this manual.
  1328.  
  1329.  
  1330.  
  1331.  
  1332.                                           17
  1333.  
  1334.  
  1335.  
  1336.  
  1337.         THE INSTACALC MACRO LANGUAGE
  1338.         ----------------------------
  1339.         In  addition  to the  macro recorder,  InstaCalc  provides a  built in
  1340.         programming language  which provides  additional capabilities  such as
  1341.         windowing,  menu creation,  control  structures, and  printer and  DOS
  1342.         access.
  1343.  
  1344.         An InstaCalc  application  program  simply  consists of  a  text  file
  1345.         containing the  commands which  you would like  InstaCalc to  execute.
  1346.         You may give your program files any valid DOS name,  but the extension
  1347.         must be .MAC (for  example MYPROG.MAC).  Your application  program can
  1348.         consist  of  keystroke  macros,  InstaCalc  Command  Environment (ICE)
  1349.         commands, or both.
  1350.  
  1351.         The InstaCalc Command  Environment also provides the  ability to debug
  1352.         your  macros.   For more details  on ICE  and macros,  see the section
  1353.         titled INSTACALC APPLICATIONS.
  1354.  
  1355.  
  1356.  
  1357.         CUTTING DATA FROM OTHER PROGRAMS
  1358.         --------------------------------
  1359.         When  run as  a TSR,  InstaCalc provides  the ability  to import  data
  1360.         directly from the screen of another program  into the worksheet.  This
  1361.         allows  you to import text and  numbers from your word processor, data
  1362.         base manager, or  any other type of program.   You may import multiple
  1363.         columns off the screen at the same time.
  1364.  
  1365.         When you  are in your application program and you  want to cut data on
  1366.         the screen into InstaCalc:
  1367.  
  1368.         -  Press the  Hot  Key (InstaCalc  must  have been  loaded  before you
  1369.         started up your application program).  This will pop up InstaCalc.
  1370.  
  1371.         -  Move the cell pointer to the cell  where you want the first line of
  1372.         the imported data to be placed.
  1373.  
  1374.         - Press <F7>Cut.  This  will switch the display back to the screen you
  1375.         want to cut from.
  1376.  
  1377.         - Use the  arrow keys to move  the cursor to the upper  left corner of
  1378.         the  block you want to cut, then press  the period key.  This sets the
  1379.         anchor for the block.
  1380.  
  1381.         - Use the arrow  keys to begin marking the block you want to cut.  The
  1382.         block will be highlighted on the screen.
  1383.  
  1384.         - Once you have highlighted  the column you want to cut,  either press
  1385.         <Enter> to cut that column,  or press the period key again  to set the
  1386.         anchor for another column.
  1387.  
  1388.         - If you choose to cut more than one  column off the screen at a time,
  1389.         continue to  set the anchor, highlight the  column, set the anchor for
  1390.         the next  column and  so on.   Once  you have  highlighted all  of the
  1391.         columns you want to cut, press <Enter> to finish cutting the data from
  1392.         the screen.
  1393.  
  1394.  
  1395.  
  1396.                                           18
  1397.  
  1398.  
  1399.  
  1400.  
  1401.         - Pressing <Esc> at any time will cancel the last selection.
  1402.  
  1403.  
  1404.         PASTING DATA TO OTHER PROGRAMS
  1405.         ------------------------------
  1406.         When run as a TSR,  InstaCalc provides the ability to paste  data from
  1407.         the Worksheet directly into another program.  This allows you to paste
  1408.         spreadsheet  data directly into a word  processor document or database
  1409.         record without even having to exit your program.
  1410.  
  1411.         When you want to paste spreadsheet data into another program:
  1412.  
  1413.         - Make  sure the cursor  in the  other program is  where you want  the
  1414.         exported data  to be placed.   If you are pasting into  your editor or
  1415.         word processor, make sure any "auto indent" feature is turned off,  or
  1416.         each line of the pasted data will shift further to the right.
  1417.  
  1418.         -  Press the  Hot  Key (InstaCalc  must have  been  loaded before  you
  1419.         started up your application program).  This will pop up InstaCalc.
  1420.  
  1421.         - Press <F8>Paste.
  1422.  
  1423.         -  Use the arrow keys  to move the cursor to  the upper left corner of
  1424.         the block you want to paste, then press the period key.  This sets the
  1425.         anchor for the block.
  1426.  
  1427.         - Use the arrow  keys to begin  marking the block  you want to  paste.
  1428.         The block will be highlighted on the screen.
  1429.  
  1430.         - Once you have highlighted the block you want to paste, press <Enter>
  1431.         to select that block for pasting.
  1432.  
  1433.         - Select the  key you want each  row terminated with.   You may select
  1434.         <Enter>, <Down>, or <Right>.
  1435.  
  1436.         - Pressing <Esc> at any time will cancel the last selection.
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.                                           19
  1461.  
  1462.  
  1463.  
  1464.  
  1465.         REFERENCE
  1466.         ---------
  1467.  
  1468.         THE FUNCTION KEYS
  1469.         -----------------
  1470.         Several of InstaCalc's commands are assigned to one of the 10 function
  1471.         keys instead  of or in addition  to the command menus.   Several other
  1472.         commands are also assigned to one of the function keys with the <Ctrl>
  1473.         key pressed.  To execute  one of these commands, simply hold  down the
  1474.         <Ctrl> key and then press the appropriate function key.
  1475.  
  1476.         <F1> Help      This key calls up context sensitive help.
  1477.  
  1478.         <F2> Edit      This key allows you to edit the current cell.
  1479.  
  1480.         <F3> Range     This key  calls up a menu of defined range names.  This
  1481.                        key can be used any time you are asked to define a cell
  1482.                        or range.
  1483.  
  1484.         <F4> Absolute  This key  cycles absolute and relative  references when
  1485.                        you are  pointing out  cell references with  the cursor
  1486.                        keys.  If no anchor is set then the first coordinate is
  1487.                        adjusted.  If the  anchor has  been set then  <F4> will
  1488.                        adjust the non-anchor reference.
  1489.  
  1490.         <F5> GoTo      This key allows you to move the cell pointer to another
  1491.                        cell.   You will be asked  for the name of  the cell to
  1492.                        move to.
  1493.  
  1494.         <F6> Search    This key allows you to search for some  text in a cell,
  1495.                        and allows you to move the cell pointer to that cell or
  1496.                        replace the text with other text.
  1497.  
  1498.                        Find           This option allows you to enter the text
  1499.                                       you want to search for.
  1500.  
  1501.                        Replace with   This option allows you to enter the text
  1502.                                       you want to replace the Find text with.
  1503.  
  1504.                        Ignore case    If you  set this option to  No, then the
  1505.                                       Find  text   must  match  text   in  the
  1506.                                       Worksheet  exactly  to  be considered  a
  1507.                                       match.  If this  option is Yes, then the
  1508.                                       Find  text   will  match  text   in  the
  1509.                                       Worksheet  if the letters  are the same,
  1510.                                       even if some are  uppercase and some are
  1511.                                       lower case.
  1512.  
  1513.                        Block          This  option  allows you  to  define the
  1514.                                       range of cells you want to search.  This
  1515.                                       allows you  to limit  your search to  as
  1516.                                       small a range of cells as you want.
  1517.  
  1518.                        Start          This  command  begins  the   search  and
  1519.                                       replace operation.  InstaCalc will begin
  1520.                                       searching through the defined range, and
  1521.                                       will stop  when it  finds a match.   The
  1522.  
  1523.  
  1524.                                           20
  1525.  
  1526.  
  1527.  
  1528.  
  1529.                                       matching cell and  its contents will  be
  1530.                                       displayed, and  you will be asked if you
  1531.                                       want to perform the Replace.   There are
  1532.                                       4 options.
  1533.  
  1534.                                       No   No, don't perform the  replace, but
  1535.                                            continue searching.
  1536.  
  1537.                                       Yes  Yes, perform the replace,  and then
  1538.                                            continue searching.
  1539.  
  1540.                                       All  Yes, perform the  replace on  this,
  1541.                                            and  all  other  matches which  you
  1542.                                            find.   This is a global search and
  1543.                                            replace, and you will not  be asked
  1544.                                            for any further confirmation.
  1545.  
  1546.                                       GoTo No, don't perform the  replace, and
  1547.                                            just  move the cell pointer to this
  1548.                                            new  cell  and  quit   any  further
  1549.                                            searching.
  1550.  
  1551.                                       If you  just want to quit,  then you can
  1552.                                       simply press the <Esc> key.
  1553.  
  1554.         <F7> Cut       This key allows  you to cut data off  the screen of the
  1555.                        program you popped up through (if you started InstaCalc
  1556.                        with the /p  option).  See  the section titled  Cutting
  1557.                        Data From Other Programs.
  1558.  
  1559.         <F8> Paste     This key  allows you to paste data  from InstaCalc into
  1560.                        the  program  you popped  up  through  (if you  started
  1561.                        InstaCalc with the /p option).   See the section titled
  1562.                        Pasting Data To Other Programs.
  1563.  
  1564.         <F9> Recalc    This  key  recalculates  the  entire worksheet.    This
  1565.                        command  is  only  necessary  when you  have  used  the
  1566.                        /Worksheet  Calc Manual  command  to disable  automatic
  1567.                        recalculation.
  1568.  
  1569.         <F10> Graph    This key  displays the  currently defined graph.   This
  1570.                        key is simply a shortcut for the /Graph View command.
  1571.  
  1572.         <^F1> Help     This key brings up the Help Index of the help system.
  1573.  
  1574.         <^F2> Debug    This key  brings up the application  program debug menu
  1575.                        when  you are  single  stepping through  an application
  1576.                        program.  Simply select Edit  from the menu, then  type
  1577.                        in the name of the cell you want to examine.  InstaCalc
  1578.                        will display the current contents of the cell, and will
  1579.                        allow you to modify  those contents if you want.   When
  1580.                        you press  <Enter>,  the InstaCalc  will resume  single
  1581.                        stepping through the application.
  1582.  
  1583.         <^F3> Break    This key breaks out  of a running application.   If you
  1584.                        press this key when  an application program is running,
  1585.                        it will abort  the application  unless the  application
  1586.  
  1587.  
  1588.                                           21
  1589.  
  1590.  
  1591.  
  1592.  
  1593.                        program  has  used   the  #BREAK  command  to   disable
  1594.                        breaking.
  1595.  
  1596.         <^F4> Mark     This key marks the  current cell so that you  can later
  1597.                        return  to it with the <Ctrl><F5> key.  For example, if
  1598.                        you press <Ctrl><F4>  when the cell pointer  is on cell
  1599.                        Q53, then you  can move anywhere  in the worksheet  and
  1600.                        return to  cell Q53  by simply pressing  the <Ctrl><F5>
  1601.                        key.
  1602.  
  1603.         <^F5> ToMark   This  key   returns  to  the  last   cell  marked  with
  1604.                        <Ctrl><F4>.
  1605.  
  1606.         <^F6> Files    This key calls up the File Manager.  You  will be asked
  1607.                        to  enter a mask to tell InstaCalc which files you want
  1608.                        to be displayed.   Pressing <Enter>  will use the  Mask
  1609.                        *.*, which will display all of the files in the current
  1610.                        directory.
  1611.  
  1612.         <^F7> EGA43    This key  toggles 43/50 line mode  on EGA/VGA monitors.
  1613.                        If you have an EGA or VGA monitor, this function allows
  1614.                        you to see twice as many rows on the screen as normal.
  1615.  
  1616.         <^F8> Status   This key displays  a status window.   The status window
  1617.                        lists the  current directory and file  name, the amount
  1618.                        of memory available, the current date and time, and the
  1619.                        current default settings.
  1620.  
  1621.         <^F9> Enter    This key toggles  Enter mode.  This  mode is especially
  1622.                        useful for  repetitive  data entry.   When  you are  in
  1623.                        Enter mode, pressing the <Enter> key to enter data into
  1624.                        a  cell will  enter that  data and  them move  the cell
  1625.                        pointer in the last direction moved.
  1626.  
  1627.         <^F10> Learn   This  key turns  the macro  recorder on  and off.   The
  1628.                        macro  recorder  allows you  to  assign  a sequence  of
  1629.                        keystrokes to  a single  key, and  when you press  that
  1630.                        single  key,  it  will  automatically  play   back  the
  1631.                        keystroke sequence for you.
  1632.  
  1633.                        If  a  macro already  exists for  the  key you  want to
  1634.                        record   to,  InstaCalc  will   provide  the  following
  1635.                        options:
  1636.  
  1637.                        Replace   Replace the existing macro with this new one.
  1638.                        Edit      Edit the existing macro.
  1639.                        Cancel    Cancel this operation.
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.                                           22
  1653.  
  1654.  
  1655.  
  1656.  
  1657.         INSTACALC COMMAND MENUS
  1658.         -----------------------
  1659.         When you  want to execute a  command in InstaCalc, it  will usually be
  1660.         through InstaCalc's menu system.  To bring up InstaCalc's menu system,
  1661.         you simply press the / key  (or press the left button on  your mouse).
  1662.         This section provides a description of each menu command.
  1663.  
  1664.  
  1665.         ---------------------------------------------------------------------
  1666.         /Cell Format
  1667.         ---------------------------------------------------------------------
  1668.         This command allows you to  modify the display of the current  cell by
  1669.         setting its format.  If the value  using the format you select is  too
  1670.         long to  fit into the cell's  assigned width, a row  of asterisks will
  1671.         appear.
  1672.  
  1673.         Options:  General,  Currency,  Fixed,  Percent,  Science, Time,  Date,
  1674.         Hidden, Label, Reset
  1675.  
  1676.  
  1677.         ---------------------------------------------------------------------
  1678.         /Cell Width
  1679.         ---------------------------------------------------------------------
  1680.         This command  allows you to  make the  column the cell  pointer is  in
  1681.         wider or narrower (or even hide it).
  1682.  
  1683.         Set       The set  option allows you to change the width.  You will be
  1684.                   asked how wide the column should be.  You may either enter a
  1685.                   number, or use  the arrow keys to change the  width.  <Left>
  1686.                   will narrow the column, and <Right> will widen the column.
  1687.  
  1688.         Reset     Resets  the  column the  cell pointer  is  in to  the global
  1689.                   width.
  1690.  
  1691.  
  1692.         ---------------------------------------------------------------------
  1693.         /Cell Erase
  1694.         ---------------------------------------------------------------------
  1695.         This command erases the contents  of the current cell.  The  cell will
  1696.         retain its formatting.
  1697.  
  1698.  
  1699.  
  1700.         ---------------------------------------------------------------------
  1701.         /Cell Justify
  1702.         ---------------------------------------------------------------------
  1703.         This  command allows you to change  the way text strings are displayed
  1704.         in the  cell which  the cell  pointer is  in.  The  command has  three
  1705.         options:
  1706.  
  1707.         Left      Justifies text in  the current cell to the left  edge of the
  1708.                   cell.  When a label is entered, it  will appear beginning in
  1709.                   the leftmost character of the cell.
  1710.  
  1711.         Right     Justifies text in  the current cell to the right edge of the
  1712.                   cell.  When  a label is entered, it will  appear flush right
  1713.                   in the cell.
  1714.  
  1715.  
  1716.                                           23
  1717.  
  1718.  
  1719.  
  1720.  
  1721.         Center    Justifies  text in  the current  cell to  the center  of the
  1722.                   cell.  When a  label is entered, it will appear  centered in
  1723.                   the cell.
  1724.  
  1725.  
  1726.  
  1727.         ---------------------------------------------------------------------
  1728.         /Cell Copy
  1729.         ---------------------------------------------------------------------
  1730.         This command copies the contents of the cell that the  cell pointer is
  1731.         in to another cell or range of cells.  You will be asked to define the
  1732.         cell or range of  cells you want to copy to.  If  you copy the cell to
  1733.         more than  one cell, an  individual copy will  be made in each  of the
  1734.         destination cell.  If the source cell contains a formula, all relative
  1735.         references will be adjusted when the formula is copied.
  1736.  
  1737.  
  1738.  
  1739.         ---------------------------------------------------------------------
  1740.         /Cell Move
  1741.         ---------------------------------------------------------------------
  1742.         This  command moves the contents of the  cell that the cell pointer is
  1743.         in  to  a  different location.    You  will  be  asked to  define  the
  1744.         destination cell.   If the current cell  contains a formula, then  the
  1745.         references will be adjusted to point to the same data.   References in
  1746.         other cells  which refer to  the moved cell  will also be  adjusted so
  1747.         that they continue to point to the same data.
  1748.  
  1749.  
  1750.  
  1751.         ---------------------------------------------------------------------
  1752.         /Cell Protect
  1753.         ---------------------------------------------------------------------
  1754.         This  command allows the current cell to be protected against changes.
  1755.         If, for  example, the  cell contains  a formula that  you do  not want
  1756.         changed, use the /Cell  Protect Yes command to guard  against changes.
  1757.         If  you thereafter want to edit or  change that formula, use the /Cell
  1758.         Protect  No  command to  unprotect the  cell.    The  default mode  is
  1759.         "protected."
  1760.  
  1761.         A protected cell may  still be modified until Worksheet  protection is
  1762.         enabled  using  the  /Worksheet  Protect Enable  command.    Worksheet
  1763.         Protect  is  much  like  a  "master  switch"  which  turns  protection
  1764.         capabilities on and off for the entire Worksheet.
  1765.  
  1766.         Yes  Enables protection on the current cell.
  1767.         No   Disables protection on the current cell.
  1768.  
  1769.  
  1770.  
  1771.  
  1772.         ---------------------------------------------------------------------
  1773.         /Range Format
  1774.         ---------------------------------------------------------------------
  1775.         This command  allows you to choose the best format  for the cells in a
  1776.         range.  You  will be asked  to define the range  of cells you  want to
  1777.         change the format of.
  1778.  
  1779.  
  1780.                                           24
  1781.  
  1782.  
  1783.  
  1784.  
  1785.         Options:  General,  Currency,  Fixed,  Percent, Science,  Time,  Date,
  1786.         Hidden, Label, Reset
  1787.  
  1788.  
  1789.  
  1790.         ---------------------------------------------------------------------
  1791.         /Range Width
  1792.         ---------------------------------------------------------------------
  1793.         This command allows you to make several columns wider or  narrower (or
  1794.         even hide them).  You will be asked to  define the range of columns to
  1795.         widen or narrow.
  1796.  
  1797.         Set       The set option  allows you  to change the  width of  several
  1798.                   columns at the same time.  You may either enter a number, or
  1799.                   use the arrow keys to change the width.  <Left> will  narrow
  1800.                   the column, and <Right> will widen the column.
  1801.  
  1802.         Reset     Resets the columns in the range to the global width.
  1803.  
  1804.  
  1805.         ---------------------------------------------------------------------
  1806.         /Range Erase
  1807.         ---------------------------------------------------------------------
  1808.         This command  erases the contents  of a range  of cells.   You will be
  1809.         asked to define the range of cells you want to erase.
  1810.  
  1811.  
  1812.  
  1813.  
  1814.         ---------------------------------------------------------------------
  1815.         /Range Justify
  1816.         ---------------------------------------------------------------------
  1817.         This command allows you to change  the way text strings are  displayed
  1818.         in each cell  in a range.   You will be asked  to define the range  of
  1819.         cells you want to change.
  1820.  
  1821.         Left      Justifies text in each cell of the range to the left edge of
  1822.                   the cell.  When a label is entered, it will appear beginning
  1823.                   in the leftmost character of the cell.
  1824.  
  1825.         Right     Justifies text in each cell  of the range to the right  edge
  1826.                   of the  cell.  When a label is entered, it will appear flush
  1827.                   right in the cell.
  1828.  
  1829.         Center    Justifies text  in each cell of  the range to the  center of
  1830.                   the cell.  When a label is  entered, it will appear centered
  1831.                   in the cell.
  1832.  
  1833.  
  1834.  
  1835.         ---------------------------------------------------------------------
  1836.         /Range Copy
  1837.         ---------------------------------------------------------------------
  1838.         This  command copies  the  contents of  a  range of  cells  to another
  1839.         location.   You will  first be asked  to define  the cell or  range of
  1840.         cells you want to copy (source  range), and then the location you want
  1841.         to copy to (destination).   If the destination you define is  a single
  1842.  
  1843.  
  1844.                                           25
  1845.  
  1846.  
  1847.  
  1848.  
  1849.         cell,  the source range will be copied  starting at that location.  If
  1850.         the destination contains more than one cell,  the source range will be
  1851.         copied to  each cell in  the destination  range.  This  is useful  for
  1852.         copying a  range of cells to  several adjacent locations at  once.  If
  1853.         any of the  source cells  contain a formula,  all relative  references
  1854.         will be adjusted when the formula is copied.
  1855.  
  1856.  
  1857.  
  1858.         ---------------------------------------------------------------------
  1859.         /Range Move
  1860.         ---------------------------------------------------------------------
  1861.         This command moves  the contents of  a range of  cells to a  different
  1862.         location.  You will  be asked to  first define the  range of cells  to
  1863.         move (source range), and then the destination.  If any of the cells in
  1864.         the  source  range contains  a formula,  then  the references  will be
  1865.         adjusted to continue  to point to the same data.   References in other
  1866.         cells which refer to the moved cell will also be adjusted so that they
  1867.         continue to point to the same data.
  1868.  
  1869.         When you define the destination, you only need to supply a single cell
  1870.         address; the source range will be copied with the upper left corner in
  1871.         the destination cell.
  1872.  
  1873.  
  1874.         ---------------------------------------------------------------------
  1875.         /Range Name
  1876.         ---------------------------------------------------------------------
  1877.         This  command allows you to give  a name to a cell  or range of cells.
  1878.         This  name can  then be  used anywhere  that a  cell address  or range
  1879.         reference  can be  used by  either typing  in the  range's name  or by
  1880.         pressing the <F3> Range key and selecting the name from a menu.
  1881.  
  1882.         Create    Allows  you to name the cell or  range.  When this option is
  1883.                   selected, you are  asked what you want  to name the cell  or
  1884.                   range.   The name must  begin with a letter  of the alphabet
  1885.                   and can be  up to 8 characters long.  You  are then asked to
  1886.                   define the range to name  by typing in the range  address or
  1887.                   by pointing out the range with the cursor keys.
  1888.  
  1889.         Delete    Releases the  range name which  is associated with  a range.
  1890.                   You will be asked to type in the name to delete.
  1891.  
  1892.         Reset     Deletes all range names.
  1893.  
  1894.         List      Causes  a list of the current range  names to appear.  Up to
  1895.                   16 names will be displayed at a time.  Use <PgUp> and <PgDn>
  1896.                   to see more names.
  1897.  
  1898.  
  1899.  
  1900.         ---------------------------------------------------------------------
  1901.         /Range Protect
  1902.         ---------------------------------------------------------------------
  1903.         This command allows you to protect a range of cells.  If, for example,
  1904.         the range  contains formulas  that you  do not  want changed,  use the
  1905.         /Range  Protect  Yes  command  to  guard  against  changes.    If  you
  1906.  
  1907.  
  1908.                                           26
  1909.  
  1910.  
  1911.  
  1912.  
  1913.         thereafter want to edit or  change a cell in the range, use  the /Cell
  1914.         Protect  No  command to  unprotect the  cell.    The  default mode  is
  1915.         "protected."
  1916.  
  1917.         A protected cell may  still be modified until Worksheet  protection is
  1918.         enabled  using  the  /Worksheet  Protect Enable  command.    Worksheet
  1919.         Protect  is  much  like  a  "master  switch"  which  turns  protection
  1920.         capabilities on and off for the entire Worksheet.
  1921.  
  1922.         You will be asked to define the range you want to protect.
  1923.  
  1924.         Yes  Enables protection on the selected range.
  1925.         No   Disables protection on the selected range.
  1926.  
  1927.  
  1928.         ---------------------------------------------------------------------
  1929.         /Worksheet Format
  1930.         ---------------------------------------------------------------------
  1931.         This command  allows  you to  choose a  global format  for the  entire
  1932.         Worksheet.
  1933.  
  1934.         Options:  General,  Currency,  Fixed,  Percent, Science,  Time,  Date,
  1935.         Hidden, Label
  1936.  
  1937.  
  1938.         ---------------------------------------------------------------------
  1939.         /Worksheet Width
  1940.         ---------------------------------------------------------------------
  1941.         This command allows you to set the default width of all columns in the
  1942.         Worksheet.  You will be prompted to enter the new global column width.
  1943.         You  may either enter  a number, or  use the arrow keys  to change the
  1944.         width.   <Left>  will narrow  the column, and  <Right> will  widen the
  1945.         column.
  1946.  
  1947.  
  1948.  
  1949.         ---------------------------------------------------------------------
  1950.         /Worksheet Erase
  1951.         ---------------------------------------------------------------------
  1952.         This command erases the current Worksheet's contents entirely.  All of
  1953.         the  Worksheet settings are  restored to their defaults.   You will be
  1954.         asked to confirm whether you really want to erase the worksheet.
  1955.  
  1956.         Yes  Erase the Worksheet from memory.
  1957.         No   Don't erase the Worksheet from memory.
  1958.  
  1959.  
  1960.  
  1961.         ---------------------------------------------------------------------
  1962.         /Worksheet Justify
  1963.         ---------------------------------------------------------------------
  1964.         This command allows you to  change the way text strings are  displayed
  1965.         in each  cell of the Worksheet.  This command will not change they way
  1966.         existing  text cells  are  justified.   It  only determines  how  text
  1967.         entered  in the  future will  be  displayed.   The  command has  three
  1968.         options:
  1969.  
  1970.  
  1971.  
  1972.                                           27
  1973.  
  1974.  
  1975.  
  1976.  
  1977.         Left      Justifies text in cells to the left edge of the  cell.  When
  1978.                   a label is entered, it will appear beginning in the leftmost
  1979.                   character of the cell.
  1980.  
  1981.         Right     Justifies text in cells to the right edge of the cell.  When
  1982.                   a label is entered, it will appear flush right in the cell.
  1983.  
  1984.         Center    Justifies text in  cells to the center of the  cell.  When a
  1985.                   label is entered, it will appear centered in the cell.
  1986.  
  1987.  
  1988.         ---------------------------------------------------------------------
  1989.         /Worksheet Ins Column
  1990.         ---------------------------------------------------------------------
  1991.         This  command inserts one  or more blank  columns at the  current cell
  1992.         pointer position.  The current column and all the columns to the right
  1993.         will be  shifted right to make  room for the blank  columns.  Relative
  1994.         references in  formulas  will  be  updated  by  the  change;  absolute
  1995.         references  will remain unchanged.   You will be  asked how many blank
  1996.         columns you want to  insert.  Use the arrow keys  to highlight how may
  1997.         columns  should be  inserted.   If  you  highlight 2  columns,  then 2
  1998.         columns will be inserted.
  1999.  
  2000.  
  2001.         ---------------------------------------------------------------------
  2002.         /Worksheet Insert Row
  2003.         ---------------------------------------------------------------------
  2004.         This  command  inserts one  or more  blank  rows at  the  current cell
  2005.         pointer position.   The  current row  and all the  rows below  will be
  2006.         shifted down  to make room for the blank rows.  Relative references in
  2007.         formulas  will  be updated  by  the change;  absolute  references will
  2008.         remain unchanged.  You  will be asked how many blank rows  you want to
  2009.         insert.   Use  the arrow  keys to  highlight the  number of  rows that
  2010.         should  be inserted.   If you  highlight 3  rows, then 3  rows will be
  2011.         inserted.
  2012.  
  2013.  
  2014.  
  2015.         ---------------------------------------------------------------------
  2016.         /Worksheet Del Column
  2017.         ---------------------------------------------------------------------
  2018.         This command  deletes one or more columns  at the current cell pointer
  2019.         position.  The contents of the deleted columns will be erased, and all
  2020.         of the  columns  to the  right will  be shifted  left to  fill in  the
  2021.         deleted columns.  Relative  references in formulas will be  updated by
  2022.         the  change; absolute references will remain unchanged.  Use the arrow
  2023.         keys to highlight the columns that should be deleted.
  2024.  
  2025.  
  2026.         ---------------------------------------------------------------------
  2027.         /Worksheet Del Row
  2028.         ---------------------------------------------------------------------
  2029.         This  command deletes  one or more  rows at  the current  cell pointer
  2030.         position.  The contents of the deleted rows will be erased, and all of
  2031.         the  rows  below will  be  shifted up  to  fill in  the  deleted rows.
  2032.         Relative  references  in  formulas  will be  updated  by  the  change;
  2033.         absolute  references will  remain unchanged.   Use  the arrow  keys to
  2034.  
  2035.  
  2036.                                           28
  2037.  
  2038.  
  2039.  
  2040.  
  2041.         highlight the rows that should be deleted.
  2042.  
  2043.         ---------------------------------------------------------------------
  2044.         /Worksheet Title
  2045.         ---------------------------------------------------------------------
  2046.         This command  allows you to lock (or hold) rows and columns on screen.
  2047.         The command acts as a toggle; invoking it a first time turns the title
  2048.         locking ON, and invoking it a second time turns the title locking OFF.
  2049.         With title locking ON, the rows above the current cell and the columns
  2050.         to the left of the  current cell will be  locked on screen.  The  cell
  2051.         pointer will not move into the locked title rows and columns.  
  2052.  
  2053.         ---------------------------------------------------------------------
  2054.         /Worksheet Protect
  2055.         ---------------------------------------------------------------------
  2056.         This  command  enables or  disables the  protection in  the Worksheet.
  2057.         When the Worksheet protection  is disabled, any cell in  the Worksheet
  2058.         may be modified,  regardless of whether the cell is  protected or not.
  2059.         When the  Worksheet  protection  is enabled,  those  cells  which  are
  2060.         protected  using  the cell  or range  protection  commands may  not be
  2061.         modified or altered in any way.
  2062.  
  2063.         Enable    Turns Worksheet protection on.
  2064.         Disable   Turns Worksheet protection off.
  2065.  
  2066.  
  2067.         ---------------------------------------------------------------------
  2068.         /Worksheet Zero
  2069.         ---------------------------------------------------------------------
  2070.         This  command allows you  to suppress the  display of  all cells which
  2071.         have a value of zero.
  2072.  
  2073.         No   Don't suppress the display of zeros.
  2074.         Yes  Suppress the display of zeros.
  2075.  
  2076.  
  2077.         ---------------------------------------------------------------------
  2078.         /Worksheet Calc
  2079.         ---------------------------------------------------------------------
  2080.         This command allows you to select whether InstaCalc should recalculate
  2081.         the Worksheet after any cell is  changed, or only when the <F9> Recalc
  2082.         key is pressed.
  2083.  
  2084.         Auto      Recalculate  the cells  which need  recalculation  after any
  2085.                   cell is changed.
  2086.  
  2087.         Manual    Only recalculate the  worksheet when the <F9>  Recalc key is
  2088.                   pressed.   Since  the recalculation  state of  the worksheet
  2089.                   will usually  not be current, InstaCalc will  write the word
  2090.                   CALC in the upper  right corner when the worksheet  needs to
  2091.                   be recalculated.
  2092.  
  2093.         Limited   Allows you to limit recalculation to a range of cells.   You
  2094.                   will  be asked to define  a range (or  range) of cells which
  2095.                   should be recalculated instead of the entire worksheet.
  2096.  
  2097.         Full      Restores recalculation to the entire worksheet.
  2098.  
  2099.  
  2100.                                           29
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.         ---------------------------------------------------------------------
  2107.         /File Retrieve
  2108.         ---------------------------------------------------------------------
  2109.         This command  retrieves a  file from  disk into memory.   You  will be
  2110.         asked for the name of the file  to retrieve.  If you press the <Enter>
  2111.         key without a file name, the  InstaCalc file manager will appear, from
  2112.         which you may select a file with the cursor keys.  When a file is read
  2113.         in, all  of the data, settings, and  current face and pointer position
  2114.         are loaded.
  2115.  
  2116.         All  current  data will  be cleared  from memory  when  a new  file is
  2117.         loaded.  InstaCalc checks to see if  you have made any changes to  the
  2118.         current  file, and  will ask  if  you want  to save  your data  before
  2119.         loading the new file.
  2120.  
  2121.         If the  file was saved with  a password (encrypted), then  you will be
  2122.         asked to enter the password  to unlock it.   If you provide the  wrong
  2123.         password, an  error  message will  appear  and the  file will  not  be
  2124.         retrieved into memory.
  2125.  
  2126.  
  2127.  
  2128.         ---------------------------------------------------------------------
  2129.         /File Save
  2130.         ---------------------------------------------------------------------
  2131.         This  command  asks you  for a  name to  save  the Worksheet  as, then
  2132.         proceeds  to save the file to disk  in the current directory. Pressing
  2133.         the  <Enter> key  without a  file name  brings up  the InstaCalc  File
  2134.         Manager,  from which a file may be  selected with the cursor keys.  In
  2135.         addition to data, all of the Worksheet settings are saved to disk.
  2136.  
  2137.         If the file  name you provide already exists in the current directory,
  2138.         InstaCalc  will ask  you whether  you want  to overwrite  the existing
  2139.         file, or  back it  up.   If you  select Backup, the  extension of  the
  2140.         existing  file's name  will  be changed  from  .INS to  .BAK, and  the
  2141.         current file will receive the .INS extension.
  2142.  
  2143.  
  2144.         ---------------------------------------------------------------------
  2145.         /File Directory
  2146.         ---------------------------------------------------------------------
  2147.         This command allows you to change the current directory or drive.  You
  2148.         may enter either a full DOS  pathname or simply a subdirectory name to
  2149.         be  appended to  the  current directory.    Pressing the  <Enter>  key
  2150.         without a file name brings up the InstaCalc File Manager, from which a
  2151.         directory may be selected with the cursor keys.
  2152.  
  2153.         ---------------------------------------------------------------------
  2154.         /File Files
  2155.         ---------------------------------------------------------------------
  2156.         This  command presents  a File  Manager, and  allows "point-and-shoot"
  2157.         operations on files, directories, and drives.
  2158.  
  2159.         You will be asked to enter a mask.   A mask is simply a way of telling
  2160.         InstaCalc  which files  you want  to be  displayed.   You may  use the
  2161.         asterisk  *  in the  mask.    The  asterisk  will  match  any  set  of
  2162.  
  2163.  
  2164.                                           30
  2165.  
  2166.  
  2167.  
  2168.  
  2169.         characters.   For example, if you enter  the mask *.BAK, then the file
  2170.         manager will list every file which ends with .BAK.
  2171.  
  2172.         <Up> <Down>    Using these  keys, you can highlight  files, drives, or
  2173.                        directories (depending on what area of the file manager
  2174.                        the highlighted  bar is  in).   Operations can  then be
  2175.                        performed on the selected file, drive, or directory.
  2176.  
  2177.         <Left> <Right> Allows  you to  change files,  drives,  or directories.
  2178.                        If,  for  example,  the   highlighted  bar  is  in  the
  2179.                        "Directory" section of the file manager, and you wanted
  2180.                        to change drives, hitting the left arrow  key will move
  2181.                        the bar into the  "Drive" section.  A new drive  may be
  2182.                        selected by using the down arrow and Enter keys.
  2183.  
  2184.         <Enter>        Causes the highlighted file, drive, or directory  to be
  2185.                        selected.
  2186.  
  2187.         <F1>           Causes a Help screen  to appear, giving help on  how to
  2188.                        use the File Manager.
  2189.  
  2190.         <F2>           Causes the currently highlighted file to be loaded.
  2191.  
  2192.         <F3>           Causes the highlighted  file to be combined.   For more
  2193.                        details see /File Combine.
  2194.  
  2195.         <F4>           Causes the highlighted  file to be imported.   For more
  2196.                        details see /File Import.
  2197.  
  2198.         <F5>           Allows you to edit the contents of the highlighted text
  2199.                        file.   Although the macro editor will be used, you are
  2200.                        not limited  to editing just  macro (.MAC) files.   See
  2201.                        /Macro Edit  for details on the  options available when
  2202.                        editing.
  2203.  
  2204.         <F6>           Causes the highlighted  text file to be printed.   This
  2205.                        function  is primarily  for  printing  out  application
  2206.                        programs.
  2207.  
  2208.         <F7>           Causes  the highlighted file to run, if it is a program
  2209.                        or batch file, and if enough memory is available.
  2210.  
  2211.         <F8>           Allows you to rename the highlighted file.  You will be
  2212.                        prompted for a new name.
  2213.  
  2214.         <F9>           Copies   the   highlighted  file   to   another  drive,
  2215.                        directory, or name.   You  will be prompted  for a  new
  2216.                        drive, directory, or name.
  2217.  
  2218.         <F10>          Deletes the highlighted  file.  InstaCalc will  request
  2219.                        confirmation before actually deleting the file.
  2220.  
  2221.         <Ctrl><F2>     Scans the current drive to update the directory tree.
  2222.  
  2223.         The  File Manager  also simplifies  the tasks  of changing  drives and
  2224.         directories.   To change to another directory, simply press the <Left>
  2225.         key to highlight the word  DIRECTORIES at the top of the  screen, then
  2226.  
  2227.  
  2228.                                           31
  2229.  
  2230.  
  2231.  
  2232.  
  2233.         use the  <Up> and <Down> keys  to highlight the name  of the directory
  2234.         you  want to  change to.    Once the  name is  highlighted, press  the
  2235.         <Enter>  key and InstaCalc will change  to that directory and list the
  2236.         files in that directory.
  2237.  
  2238.         Changing drives  is just as easy.   Simply press the  <Left> key until
  2239.         the word DRV is  highlighted at the top of the  screen, then press the
  2240.         letter of the drive you  want to change to.  For example,  if you want
  2241.         to change to drive A:, then just press A.
  2242.  
  2243.  
  2244.         ---------------------------------------------------------------------
  2245.         /File Combine
  2246.         ---------------------------------------------------------------------
  2247.         This  command allows  you to  combine several  InstaCalc files  into a
  2248.         single file.  You  will be asked for the  name of the file to  be read
  2249.         in,  and the  file  will be  loaded  without clearing  the  Worksheet.
  2250.         Pressing the <Enter>  key without a file name brings  up the InstaCalc
  2251.         File Manager, from which a file may be selected with  the cursor keys.
  2252.         The  original cells will remain unchanged unless the new file contains
  2253.         data  in the same cells.  Blank cells  in the new file will not affect
  2254.         existing cells in the  Worksheet.  Current Worksheet settings  will be
  2255.         retained.
  2256.  
  2257.         Copy      The  data in the new file  will be combined into the current
  2258.                   Worksheet.   If  the  new  file and  the  current  Worksheet
  2259.                   contain any  data in the same cell, the data in the new file
  2260.                   will be copied over the data already in memory.
  2261.  
  2262.         Add       The data in the new  file will be combined into the  current
  2263.                   Worksheet.   If  the  new  file  and the  current  Worksheet
  2264.                   contain values in the  same cell, the value in  the new file
  2265.                   will be added  to the value already  in memory.   Since this
  2266.                   command  is primarily  for consolidating  data from  several
  2267.                   worksheets, cells containing text  will not be combined into
  2268.                   the current file.
  2269.  
  2270.         Subtract  The data in the new  file will be combined into  the current
  2271.                   Worksheet.    If  the  new file  and  the  current Worksheet
  2272.                   contain values in  the same cell, the value in  the new file
  2273.                   will  be subtracted from the value already in memory.  Since
  2274.                   this  command  is  primarily  for  consolidating  data  from
  2275.                   several  worksheets,  cells  containing  text  will  not  be
  2276.                   combined into the current file.
  2277.  
  2278.         Each of these options  has two suboptions which determine how  much of
  2279.         the new file should be combined in.
  2280.  
  2281.         All  Combines in the entire file.  Every cell  in the new file will be
  2282.              combined  into the same location  in the current  Worksheet.  For
  2283.              example, cell X23  will be combined into cell X23  in the current
  2284.              worksheet.
  2285.  
  2286.         Part Combines in a  range from the file.   The cells in  the range you
  2287.              combine in will  be combined starting at the location of the cell
  2288.              pointer.  For example, if the cell pointer is in cell D5, and you
  2289.              combine in the range A1..D12 from the other file, then cell A1 in
  2290.  
  2291.  
  2292.                                           32
  2293.  
  2294.  
  2295.  
  2296.  
  2297.              the  new file  will  be  combined into  cell  D5  in the  current
  2298.              worksheet.
  2299.  
  2300.              You will be asked  for the range in the other file which you want
  2301.              to combine in.
  2302.  
  2303.              If the range  you want to  combine in was  named with the  /Range
  2304.              Name command, you can press the <F3> Range key to bring up a menu
  2305.              of all the named ranges in the other file.
  2306.  
  2307.  
  2308.  
  2309.         ---------------------------------------------------------------------
  2310.         /File Xtract
  2311.         ---------------------------------------------------------------------
  2312.         This command  is similar  to the  /File Save command,  except that  it
  2313.         saves a range of  cells rather than the entire Worksheet.  You will be
  2314.         asked for the name  of the file to save to, and to define the range of
  2315.         cells to save.  InstaCalc saves all of the Worksheet settings with the
  2316.         saved range.
  2317.  
  2318.  
  2319.         ---------------------------------------------------------------------
  2320.         /File Import
  2321.         ---------------------------------------------------------------------
  2322.         This command  imports data files  from other programs  into InstaCalc.
  2323.         You will  be asked  for the  name of  the  file to  import.   Pressing
  2324.         <Enter> without a file name brings up the InstaCalc File Manager, from
  2325.         which a file may be selected with the cursor keys.
  2326.  
  2327.         1-2-3     Imports  a Lotus 1-2-3 (tm) file.  If InstaCalc encounters a
  2328.                   formula which  uses an  unsupported @function, it  will read
  2329.                   the value of the formula rather than the formula itself.
  2330.  
  2331.         dBase     Imports selected  records from a  dBase (tm)  file.   Fields
  2332.                   will appear  as columns,  and records will  appear as  rows.
  2333.                   You do  not have  to import every  field of  the data  base.
  2334.                   Before the  import begins,  InstaCalc will step  through the
  2335.                   names  of each  field and  ask if  you want  to  import that
  2336.                   field.  You may select:
  2337.  
  2338.                   Yes  Import this field.
  2339.                   No   Don't import this field.
  2340.                   All  Import this and all the remaining fields.
  2341.  
  2342.                   You will then be asked to enter a criteria.  The criteria is
  2343.                   a string  which tells  InstaCalc which  records you  want to
  2344.                   import.   The criteria  can be  any valid  InstaCalc formula
  2345.                   which returns a TRUE or FALSE value.  The criteria may treat
  2346.                   any of the dBase field names  as if they were range names in
  2347.                   the formula.   The criteria  can use any  of the  comparison
  2348.                   operators (=,<>,<=, etc) or logical operators (&,|, or ~).
  2349.  
  2350.                   If  you  press <Enter>  without  entering  a criteria,  then
  2351.                   InstaCalc  will import every record  from the dBase file (if
  2352.                   there is enough memory to hold them).
  2353.  
  2354.  
  2355.  
  2356.                                           33
  2357.  
  2358.  
  2359.  
  2360.  
  2361.                   Some example criteria are:
  2362.  
  2363.                   STATE="Utah"
  2364.                   All records where the STATE field contains Utah
  2365.  
  2366.                   The only limitation to the criteria is that you may only use
  2367.                   the names of fields  which you are actually importing.   For
  2368.                   example, if  you select No  when asked  if InstaCalc  should
  2369.                   import the field called STATE, then you may not use STATE in
  2370.                   your criteria.
  2371.  
  2372.         DIF       Imports  a  Data  Interchange   Format  (DIF)  file.    Many
  2373.                   databases  and  spreadsheets  are capable  of  creating  DIF
  2374.                   files.
  2375.  
  2376.         ASCII     Imports  a comma  delimited or  space delimited  ASCII file.
  2377.                   Each line in  the ASCII file will be imported  into a row in
  2378.                   the  worksheet.    Each  line may  contain  multiple  fields
  2379.                   (cells) of data, each of which must be  separated by a comma
  2380.                   or space.  If a string which contains spaces or commas is to
  2381.                   be imported into  a single  cell, then that  string must  be
  2382.                   surrounded by quotation marks "like this".
  2383.  
  2384.  
  2385.  
  2386.         ---------------------------------------------------------------------
  2387.         /File Export
  2388.         ---------------------------------------------------------------------
  2389.         This command  exports a range of  cells to the file  format of another
  2390.         program.   You will be asked for the file  name you want to export to,
  2391.         and to define the range of cells you want to export.  If the file name
  2392.         you  provide exists, InstaCalc will  ask you if  you want to Overwrite
  2393.         the existing file or Cancel the operation.
  2394.  
  2395.         1-2-3     This option allows  you to export  the range  to a 1-2-3  R1
  2396.                   (WKS) or R2 (WK1) file.   You must select from a  menu which
  2397.                   version  you want to export to.  Any InstaCalc formula which
  2398.                   contains an  @function which  1-2-3 doesn't support  will be
  2399.                   exported as a value rather than a formula.
  2400.  
  2401.         dBase     This  option allows you  to export the range  to a dBase II,
  2402.                   III,  or  III+ file.    You must  select  from a  menu which
  2403.                   version you want to export to.
  2404.  
  2405.                   InstaCalc will  use the top row  of the range you  define as
  2406.                   the field names for the data to be exported.   The widths of
  2407.                   each column  will be used  as the field  width in  the dBase
  2408.                   file.
  2409.  
  2410.                   Before the  actual export is performed,  InstaCalc will step
  2411.                   through each  field name and ask  you what type of  field it
  2412.                   should be.  The available field types are:
  2413.  
  2414.                   Character The values in the field are text.
  2415.                   Number    The values in the field are numbers.
  2416.                   Logical   The values in the field are TRUE or FALSE.
  2417.                   Date      The values in the field are dates.  This option is
  2418.  
  2419.  
  2420.                                           34
  2421.  
  2422.  
  2423.  
  2424.  
  2425.                             available  only when  you export  to dBase  III or
  2426.                             III+.
  2427.  
  2428.         DIF       The  file  will be  exported  in the  DIF  (Data Interchange
  2429.                   Format) format.
  2430.  
  2431.         ASCII     The file will be  exported to a comma delimited  ASCII file.
  2432.                   Each row  of the  range will  be on a  separate line  of the
  2433.                   ASCII file,  and the value of  each cell in the  row will be
  2434.                   separated  by a  comma.   Text items  will be  surrounded by
  2435.                   quotes ".
  2436.  
  2437.  
  2438.         ---------------------------------------------------------------------
  2439.         /File Link
  2440.         ---------------------------------------------------------------------
  2441.         This command allows you  to link multiple spreadsheets together.   You
  2442.         are not limited  to linking a single cell.  You  may link to an entire
  2443.         range within another spreadsheet.
  2444.  
  2445.         The current  cell will contain the link.   If you change  the value of
  2446.         the  cell in  the  other spreadsheet,  this  "link cell"  will  change
  2447.         accordingly.
  2448.  
  2449.         If  you create a link  to a range  of cells in another  file, the link
  2450.         cell will take  on the same value as the cell in the upper left corner
  2451.         of the range in the other file.   The cells to the right of and  below
  2452.         the link cell will take on the values of corresponding  cells from the
  2453.         other file.
  2454.  
  2455.         If a change is made to any of the linked cells in the other worksheet,
  2456.         the current worksheet will be updated to reflect those changes.
  2457.  
  2458.         Each time you retrieve a file which is linked to other files, you will
  2459.         be asked if you  want to update all of  the links.  If you  select Yes
  2460.         then InstaCalc will update every  link in the file.  If  you select No
  2461.         then InstaCalc will not update any of the links in the file.
  2462.  
  2463.         Create    Create or edit  a link  to another worksheet.   You will  be
  2464.                   asked for two items.
  2465.  
  2466.                   -  The name of the file you want  to link to.  The file must
  2467.                   already be in existence.
  2468.  
  2469.                   - The name of the range you want to link to.
  2470.  
  2471.         Delete    Delete an existing link to another worksheet.
  2472.  
  2473.         List      List all of the links in the current Worksheet.
  2474.  
  2475.         Edit      Allows you to edit an existing link to another file.
  2476.  
  2477.         Update    Allows you to update a link to another file.
  2478.  
  2479.  
  2480.  
  2481.         ---------------------------------------------------------------------
  2482.  
  2483.  
  2484.                                           35
  2485.  
  2486.  
  2487.  
  2488.  
  2489.         /Print Block
  2490.         ---------------------------------------------------------------------
  2491.         This command allows you to define a range to print.  You will be asked
  2492.         to define  the range to be  printed.  The  range will not  actually be
  2493.         printed until the /Print Go command is issued.
  2494.  
  2495.  
  2496.  
  2497.         ---------------------------------------------------------------------
  2498.         /Print Rows
  2499.         ---------------------------------------------------------------------
  2500.         This  command allows  you to  define one  or more  rows which  will be
  2501.         printed above your data on each page.  This command is useful when you
  2502.         are printing a range  which has more  rows than will  fit on a  single
  2503.         sheet  of paper; it allows you to have a row of header data printed at
  2504.         the top of each page.
  2505.  
  2506.  
  2507.         ---------------------------------------------------------------------
  2508.         /Print Columns
  2509.         ---------------------------------------------------------------------
  2510.         This command  allows you to define  one or more columns  which will be
  2511.         printed to the left of your data on each page.  This command is useful
  2512.         when you are printing a range which has more columns than will fit  on
  2513.         a single  sheet of paper;  it allows you  to have  a column of  titles
  2514.         printed at the left of each page.
  2515.  
  2516.  
  2517.  
  2518.         ---------------------------------------------------------------------
  2519.         /Print Undefine
  2520.         ---------------------------------------------------------------------
  2521.         Since  InstaCalc  remembers  which  range  you  printed  last,  it  is
  2522.         sometimes necessary to reset the /Print Block setting.  When doing so,
  2523.         it is usually easiest to clear the  previous block setting entirely by
  2524.         using the /Print Undefine command.
  2525.  
  2526.         Block     Clears the previous /Print Block setting.
  2527.  
  2528.         Rows      Clears the previous /Print Rows setting.
  2529.  
  2530.         Columns   Clears the previous /Print Columns setting.
  2531.  
  2532.         All       Clears all previous /Print range settings.
  2533.  
  2534.  
  2535.         ---------------------------------------------------------------------
  2536.         /Print Align
  2537.         ---------------------------------------------------------------------
  2538.         This command sets the current position  of the printhead as the top of
  2539.         the page.   This is  important; the  printer and the  program will  be
  2540.         keeping individual track of the top of the page.   It is good habit to
  2541.         precede the /Print Go command with the /Print Align command.
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.                                           36
  2549.  
  2550.  
  2551.  
  2552.  
  2553.         ---------------------------------------------------------------------
  2554.         /Print Line
  2555.         ---------------------------------------------------------------------
  2556.         This command sends a line feed to the printer, causing  the printer to
  2557.         print a  blank line.   Since the printer  and the program  are keeping
  2558.         separate  track of  the pagination,  sending a  line feed  through the
  2559.         printer control panel will cause the program's pagination to be off by
  2560.         a  line, resulting  in  unwanted  offsets  in  your  printout.    More
  2561.         importantly, though, it  is usually  easier to advance  the paper  one
  2562.         line using this command than by using the printer's control panel.
  2563.  
  2564.  
  2565.  
  2566.         ---------------------------------------------------------------------
  2567.         /Print Page
  2568.         ---------------------------------------------------------------------
  2569.         This command  sends a form feed  to the printer, causing  the paper to
  2570.         advance  one page.   This is  usually done at  the end of  a printout,
  2571.         since printing will stop with  the last line actually printed.   Thus,
  2572.         to remove the  page from the  printer, simply select  the /Print  Page
  2573.         command.  Since the printer and the program are keeping separate track
  2574.         of the pagination,  sending a  form feed through  the printer  control
  2575.         panel  will cause  the program's  pagination to  be off,  resulting in
  2576.         unwanted offsets in your printout.
  2577.  
  2578.  
  2579.         ---------------------------------------------------------------------
  2580.         /Print Options
  2581.         ---------------------------------------------------------------------
  2582.         This  command allows complete control over the format of the printout.
  2583.         There are numerous options,  all visible from a single  pop-up screen.
  2584.         You may  select an option either  by pressing the first  letter of the
  2585.         option name (highlighted), or by using the arrow keys to highlight the
  2586.         option and pressing the <Enter> key.
  2587.  
  2588.         Left Margin    Lets you set the number of characters from left edge of
  2589.                        the page to begin printing.
  2590.  
  2591.         Right Margin   Lets you set the number of characters from left edge of
  2592.                        the page that  you want your right margin set  to.  The
  2593.                        right margin must be greater than the left margin or an
  2594.                        error will occur.
  2595.  
  2596.         Top Margin     Lets you set  the number of blank lines to print at the
  2597.                        top  of each  page.    If you  set  this  option to  3,
  2598.                        InstaCalc will begin printing on the fourth line of the
  2599.                        page.
  2600.  
  2601.         Bottom Margin  Lets you  set the number of blank lines to print at the
  2602.                        bottom  of  each page.    InstaCalc  will automatically
  2603.                        advance the  paper to the  next page before  it resumes
  2604.                        printing.
  2605.  
  2606.         Page Length    Lets  you set the number  of physical lines  on a page.
  2607.                        On an 8 1/2" x 11" paper at 6 lines per inch, there are
  2608.                        66 lines.  InstaCalc must have this information so that
  2609.                        it can keep track of where it is on the page.
  2610.  
  2611.  
  2612.                                           37
  2613.  
  2614.  
  2615.  
  2616.  
  2617.         Header         Allows  you to enter a header, which will appear at the
  2618.                        top of every  page.  If  no header  is defined, then  a
  2619.                        blank line will be printed in its place.
  2620.  
  2621.         Footer         Allows  you to enter a footer, which will appear at the
  2622.                        bottom of every page.   If no footer is defined, then a
  2623.                        blank line will be printed in its place.
  2624.  
  2625.         Mode           Lets you decide what type of printout you want.
  2626.  
  2627.                        Display   The printout will appear as the file does on-
  2628.                                  screen; that is, the values calculated by the
  2629.                                  formulas will be printed.
  2630.  
  2631.                        Formula   The formulas themselves will be  printed, one
  2632.                                  cell   per  line.     This   is   useful  for
  2633.                                  documentation and error-handling.
  2634.  
  2635.         Output         Lets you decide where to send your output.
  2636.  
  2637.                        Printer   All output will be sent to the printer.
  2638.  
  2639.                        File      All  output will be sent to a file.  You will
  2640.                                  be asked for the name of the file you want to
  2641.                                  send the printout to.
  2642.  
  2643.         Number (page)  Displays  the current page number, which you can set or
  2644.                        reset.
  2645.  
  2646.         Setup string   The setup string is a sequence of characters which will
  2647.                        be sent to  your printer before  the range is  printed.
  2648.                        It is  generally used to send control sequences to your
  2649.                        printer to  turn on special features  such as condensed
  2650.                        printing.      Most  printer   codes   contain  control
  2651.                        characters which  can't be entered directly.   To enter
  2652.                        control characters, simply enter a  backslash character
  2653.                        \ followed by the  3 digit ASCII code (in  decimal) for
  2654.                        the control character.
  2655.  
  2656.                        For example, since the ASCII value (in decimal) for the
  2657.                        <Esc>  character is 27, you would use a setup string of
  2658.                        \027E to send  an <Esc>E to the  printer (this sequence
  2659.                        selects emphasized print on an EPSON printer).
  2660.  
  2661.  
  2662.  
  2663.         ---------------------------------------------------------------------
  2664.         /Print Go
  2665.         ---------------------------------------------------------------------
  2666.         This command begins the process of printing.  InstaCalc will not begin
  2667.         printing until it receives this command.
  2668.  
  2669.         If the range you are trying to print is wider than the left  and right
  2670.         margins  allow, InstaCalc will  ask if you  want if to  break the page
  2671.         into  smaller pieces for printing.  These  pieces can then be put back
  2672.         together into a larger sheet.
  2673.  
  2674.  
  2675.  
  2676.                                           38
  2677.  
  2678.  
  2679.  
  2680.  
  2681.         If you don't want the printout to be broken into  smaller pieces, then
  2682.         you must go back into the /Print Options and reset your left and right
  2683.         margins to allow for a wider printout.
  2684.  
  2685.         If you want to abort the print job after  it has started, simply press
  2686.         the <Esc> key (printers  with built-in print buffers will  continue to
  2687.         print until the print buffer has been emptied).
  2688.  
  2689.  
  2690.  
  2691.         ---------------------------------------------------------------------
  2692.         /Graph
  2693.         ---------------------------------------------------------------------
  2694.         This  command allows  you  to define  the  ranges to  be graphed,  set
  2695.         options for the graph, and then view or print the graph.
  2696.  
  2697.         Type      Select the type of graph.  The following types of graphs are
  2698.                   available.
  2699.  
  2700.                   Bar            Bar chart.
  2701.                   Stacked Bar    Stacked bar chart.
  2702.                   Line           Line chart.
  2703.                   Pie            Pie chart using data in range A.
  2704.                   X-Y            X-Y chart.   Range X must contain  the X axis
  2705.                                  coordinates   for  the  values  in  ranges  A
  2706.                                  through F.
  2707.                   Area           Area chart.
  2708.                   Hi-Lo          Hi-Lo chart.    Range  A  contains  the  high
  2709.                                  values, and range B contains the low values.
  2710.                   3 Axis         3 axis graphs for bar, area, and line charts.
  2711.                   Depth          Adds depth to bar, area, and pie charts.
  2712.                   Explode        Enter the number of the pie slice to explode.
  2713.  
  2714.         X         Allows  you to select a range of cells containing the labels
  2715.                   which  will be  used  on a  graph's  X axis.    You will  be
  2716.                   prompted  for the  range containing  the  labels.   For most
  2717.                   graph types  the  cells  in this  range  may  contain  text,
  2718.                   values,  or both.  For  X-Y graphs, this  range must contain
  2719.                   the  x axis values which  correspond to the  graph ranges (A
  2720.                   through  F).   Defining  this  range  is mandatory  for  X-Y
  2721.                   graphs.
  2722.  
  2723.         A..F      Allows you to select  up to 6 ranges of data to graph.  With
  2724.                   the exception of pie  charts and hi-lo graphs, all  of these
  2725.                   ranges can be displayed on a graph at the same time.
  2726.  
  2727.  
  2728.         Reset     Resets  the ranges of  the graph,  allowing you  to undefine
  2729.                   data  ranges to be charted.  You can reset individual ranges
  2730.                   or all ranges at the same time.
  2731.  
  2732.  
  2733.         Options   Allows you to set various options for the graph.
  2734.  
  2735.                   General: lets you  enter titles,  x and y  axis labels,  and
  2736.                   grids. You may also select the  scaling for both the x and y
  2737.                   axes.
  2738.  
  2739.  
  2740.                                           39
  2741.  
  2742.  
  2743.  
  2744.  
  2745.                   Color:  lets you  select colors  for various  parts  of your
  2746.         chart.
  2747.  
  2748.                   Fonts: lets you select fonts to be used.
  2749.  
  2750.                   Patterns: lets you select fill patterns.
  2751.  
  2752.                   Legends: lets you enter a legend for each graph range (A..F)
  2753.  
  2754.                   Annotate:  lets you  draw freeform  text and  lines  on your
  2755.                   charts.  This free form text  will be saved along with  your
  2756.                   chart.   Your  chart will  be displayed,  and the  following
  2757.                   buttons will be available:
  2758.  
  2759.                        Text: lets you enter and add text to your chart
  2760.                        Line: lets you draw a line on your chart
  2761.                        Color: lets you change the color of text or a line
  2762.                        Move: lets you move an item you have added
  2763.                        Font: lets you change the font for text you have added
  2764.                        Delete: lets you delete an item you have added
  2765.                        Spreadsheet: exits from the annotator
  2766.  
  2767.         Print     Prints  the  defined  graph to  the  printer.    The current
  2768.                   printer  type  and  port  is displayed  next  to  the  print
  2769.                   command.
  2770.  
  2771.                   NOTE:  In this shareware version, only the drivers for Epson
  2772.                        compatible   and   LaserJet  compatible   printers  are
  2773.                        supplied.   The  other  drivers are  provided when  you
  2774.                        register.
  2775.  
  2776.                        Printer: lets you select the appropriate printer
  2777.                        Format: lets you select the resolution for your chart
  2778.                        Orientation: Portrait or Landscape
  2779.                        Height: height of the chart in inches
  2780.                        Width: width of the chart in inches
  2781.                        Left: left margin in inches
  2782.                        Top: top margin in inches
  2783.                        Go: begin printing the chart
  2784.  
  2785.         Name      Save and retrieve graph settings.
  2786.  
  2787.         Save      Save  chart as a PCX, WPG, CGM  or other format file.  These
  2788.                   drivers are provided when you register.
  2789.  
  2790.         View      Displays the defined graph  on your screen.  Once  the graph
  2791.                   is  displayed,  pressing any  key  will  return you  to  the
  2792.                   worksheet.
  2793.  
  2794.  
  2795.         ---------------------------------------------------------------------
  2796.         /Data Sort
  2797.         ---------------------------------------------------------------------
  2798.         This  command allows you  to sort rows  or columns of  data, in either
  2799.         ascending or descending order.  A window of options will appear on the
  2800.         screen.   To change an option,  either press the key  corresponding to
  2801.         the first  letter of the option name (D for Direction for example), or
  2802.  
  2803.  
  2804.                                           40
  2805.  
  2806.  
  2807.  
  2808.  
  2809.         use the cursor keys  to move the  lightbar to the  option you want  to
  2810.         change and press the <Enter> key.
  2811.  
  2812.         Direction      Determines how your data is to be sorted.
  2813.                        Row       Rows will be sorted.
  2814.                        Column    Columns will be sorted.
  2815.  
  2816.         Block          You  will be asked  to define the range  to sort.  This
  2817.                        range should include  all of the rows or  columns which
  2818.                        you want rearranged.
  2819.  
  2820.         1st - 9th Key  The Key  options  indicate the  fields  to be  used  in
  2821.                        determining the sorted  (new) order of  the data.   You
  2822.                        will  be prompted  to indicate  the column or  row that
  2823.                        contains the data by which the sort is to be performed.
  2824.                        The column or row  may be indicated either  by pointing
  2825.                        or by typing an appropriate cell address.
  2826.  
  2827.                        You  will also be asked  whether the sort  should be in
  2828.                        Ascending or Descending order.
  2829.  
  2830.         Reset          This  command resets  all of the  sort settings.   This
  2831.                        function  is necessary  when you  need to  undefine the
  2832.                        sort keys.
  2833.  
  2834.         Start          Pressing  the Start key in the  options menu will cause
  2835.                        the sort to be performed as indicated in the menu.
  2836.  
  2837.  
  2838.         ---------------------------------------------------------------------
  2839.         /Data Fill
  2840.         ---------------------------------------------------------------------
  2841.         This command allows you to  fill a specified range of cells  with text
  2842.         or numbers.   You  will  be asked  for an  equation which  is used  to
  2843.         determine the values placed in each of the cells to be filled.
  2844.  
  2845.         A variable  named # is  initialized to 0  and is incremented  by 1 for
  2846.         each cell in the range.   The # variable  may be used anywhere in  the
  2847.         equation  to provide  an endless  number of  sequences.   The equation
  2848.         entered with this command may be any legal formula containing numbers,
  2849.         operators, cell or range references, functions, or the # variable.
  2850.  
  2851.         Cell  references in  the formula  are treated  as relative  unless you
  2852.         specifically make them absolute using the $ symbol.
  2853.  
  2854.  
  2855.  
  2856.  
  2857.         ---------------------------------------------------------------------
  2858.         /Data Value
  2859.         ---------------------------------------------------------------------
  2860.         This  command converts formulas in a range  to their values.  You will
  2861.         be  asked to  define a  range  of cells  to convert.   Since  formulas
  2862.         require  more memory than  values, this command  helps conserve memory
  2863.         when you just need a set of values rather than the formulas.
  2864.  
  2865.  
  2866.  
  2867.  
  2868.                                           41
  2869.  
  2870.  
  2871.  
  2872.  
  2873.         ---------------------------------------------------------------------
  2874.         /Data Modify
  2875.         ---------------------------------------------------------------------
  2876.         This command allows  you to modify all of the values  in a range.  You
  2877.         may specify that each cell in a specified range be multiplied by 5, or
  2878.         subtracted  from  the average  value of  the  range, or  that  they be
  2879.         modified in  any of the  ways that a legal  formula may provide.   You
  2880.         will be asked to define the range to modify, as well as an equation to
  2881.         modify the cells with.
  2882.  
  2883.         This command provides a variable named # which is set to the value  of
  2884.         each cell in  the range.  This variable may be used just like a number
  2885.         or cell reference in the formula.
  2886.  
  2887.  
  2888.  
  2889.  
  2890.         ---------------------------------------------------------------------
  2891.         /Data Base
  2892.         ---------------------------------------------------------------------
  2893.         This command  allows you  to  define and  use a  range of  cells as  a
  2894.         database.   Each  column in the  range will  be treated  as a database
  2895.         field,  and each row in  the range will be treated  as a record in the
  2896.         database.   You may have up  to 23 fields (columns)  in your database.
  2897.         If the range you define is wider than 23 columns, all columns past the
  2898.         23rd will be ignored.
  2899.  
  2900.         The top cell in each column must contain the name of that field.
  2901.  
  2902.         In addition, InstaCalc will use the format of the header cell (whether
  2903.         Currency, Date, etc) for all data entered into that field.  This means
  2904.         it is not necessary to pre-format entire columns of blank cells before
  2905.         using the database form.
  2906.  
  2907.         Range     You will  be asked to define  the range of cells  to use for
  2908.                   your database.  Each column in the range will  be treated as
  2909.                   a database field, and each row in the range will be  treated
  2910.                   as a record in the database.
  2911.  
  2912.         View      This command  displays the defined range in  a database form
  2913.                   view,  using the information you provided in the cell at the
  2914.                   top of each column.
  2915.  
  2916.                   The following commands are available in the form view:
  2917.  
  2918.                   Next      Move to the next record in the database.
  2919.  
  2920.                   Prior     Move to the prior record in the database.
  2921.  
  2922.                   Begin     Move to the first record in the database.
  2923.  
  2924.                   End       Move to the last record in the database.
  2925.  
  2926.                   Modify    Modify  the  currently  displayed  record.    When
  2927.                             modifying a record, the fields will be accessed in
  2928.                             the order of the columns in the worksheet.
  2929.  
  2930.  
  2931.  
  2932.                                           42
  2933.  
  2934.  
  2935.  
  2936.  
  2937.                             You may use  <Enter> to accept  the value of  each
  2938.                             field and move to  the next field, or you  may use
  2939.                             <Up>  and <Down>  to move  back and  forth between
  2940.                             fields.    When  you are  finished  modifying  the
  2941.                             record,  simply  press  <F10>  to  return  to  the
  2942.                             database menu.
  2943.  
  2944.                   Add       Allows  you to  add new  records to  the database.
  2945.                             Add is similar to Modify except that you may press
  2946.                             <F9>  to accept the entered data and move to a new
  2947.                             (blank)  record.     Pressing  <F10>  accepts  the
  2948.                             entered  record and  returns  you to  the database
  2949.                             menu.
  2950.  
  2951.                   Find      Find  a record in the database.  You will be asked
  2952.                             to enter criteria for the record(s) to search for.
  2953.                             This  criteria  can  use field  names,  comparison
  2954.                             operators (=,<>,<=, etc), logical  operators (&,|,
  2955.                             or ~)  or even  @functions.   For example, if  you
  2956.                             want to  find all records  where the last  name is
  2957.                             Smith  and the state is NY, then you might use the
  2958.                             following criteria:
  2959.  
  2960.                             (LNAME="Smith")&(STATE="NY")
  2961.  
  2962.                   Del       Delete the  currently displayed record.   You will
  2963.                             be asked to confirm this selection.
  2964.  
  2965.  
  2966.  
  2967.         ---------------------------------------------------------------------
  2968.         /Data Goalseek
  2969.         ---------------------------------------------------------------------
  2970.         The /Data Goalseek command  allows you to easily determine  what value
  2971.         must be entered into a cell  to make a formula give a desired  result.
  2972.         The formula  does not have  to directly  reference the  cell, and  the
  2973.         model  may be as complex as desired.   The more complex the worksheet,
  2974.         however, the longer the goalseeking will take.
  2975.  
  2976.         To perform the goalseeking, select the /Data Goalseek command, then:
  2977.  
  2978.         1. Select the formula you want to achieve a particular goal value.
  2979.         2. Enter the goal value you want that formula to achieve.
  2980.         3. Select the cell which InstaCalc should adjust to achieve that goal.
  2981.  
  2982.         After  InstaCalc  finds a  solution,  it  displays  the  solution  and
  2983.         provides the following options:
  2984.  
  2985.         Use       Enter  the new  value  into  the  cell which  InstaCalc  was
  2986.                   adjusting.
  2987.  
  2988.         Ignore    Restore the original value  to the cell which  InstaCalc was
  2989.                   adjusting.
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.                                           43
  2997.  
  2998.  
  2999.  
  3000.  
  3001.         ---------------------------------------------------------------------
  3002.         /Data matriX
  3003.         ---------------------------------------------------------------------
  3004.         The  /Data matriX command allows  you to add,  multiply, and transpose
  3005.         ranges of cells.
  3006.  
  3007.         Multiply  Multiplies two ranges.
  3008.  
  3009.         Add       Adds two ranges together.
  3010.  
  3011.         Transpose Transposes (swaps columns with rows) a range.
  3012.  
  3013.  
  3014.  
  3015.  
  3016.         ---------------------------------------------------------------------
  3017.         /Data Query
  3018.         ---------------------------------------------------------------------
  3019.         The /Data Query command allows you to extract (copy) selected database
  3020.         records (or parts of records) from  an input range to an output range,
  3021.         or to delete selected records from an input range.
  3022.  
  3023.         Input          The input  range consists of  a single record  per row,
  3024.                        where the  first row  in the  range contains  the field
  3025.                        names for the database.
  3026.  
  3027.         Output         The output range is  used as the location to  place the
  3028.                        records extracted from  the input range.   If you  only
  3029.                        define  the output  range  as one  row, InstaCalc  will
  3030.                        automatically extend the range to row 4096.
  3031.  
  3032.         Criteria       The criteria  is a  string which tells  InstaCalc which
  3033.                        records you  are interested in  extracting or deleting.
  3034.                        The criteria  can be any valid  InstaCalc formula which
  3035.                        returns  a TRUE or FALSE value.  The criteria may treat
  3036.                        any of the database  field names as if they  were range
  3037.                        names in the formula.  The criteria can use any of  the
  3038.                        comparison   operators   (=,<>,<=,   etc)  or   logical
  3039.                        operators (&,|, or ~).
  3040.  
  3041.                        Some example criteria are:
  3042.  
  3043.                        STATE="Utah"
  3044.                        All records where the STATE field contains Utah
  3045.  
  3046.                        (STATE="Utah")&(LASTNAME="Smith")
  3047.                        All records where the STATE field contains Utah and the
  3048.                        LASTNAME field contains Smith
  3049.  
  3050.         Extract        Allows  you  to extract  (copy)  selected  records (and
  3051.                        fields)  from the Input range to the Output range.  The
  3052.                        top row of the  Output range must contain the  names of
  3053.                        the specific  fields you  want extracted.   This allows
  3054.                        you to extract only those fields you are interested in.
  3055.  
  3056.                        The  Output  range is  erased  before  the records  are
  3057.                        extracted.   If  more records  match the  criteria than
  3058.  
  3059.  
  3060.                                           44
  3061.  
  3062.  
  3063.  
  3064.  
  3065.                        will fit  in the  Output range,  an error message  will
  3066.                        appear.
  3067.  
  3068.         Delete         Allows you  to delete records which  match the Criteria
  3069.                        from the input  range.   You will be  asked to  confirm
  3070.                        this selection with a Yes or No answer.
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076.         ---------------------------------------------------------------------
  3077.         /Data Dist
  3078.         ---------------------------------------------------------------------
  3079.         This command generates a  frequency distribution of a range  of cells.
  3080.         You simply define the range of cells which contain the values you want
  3081.         a distribution  of, and  a "bin  range", which is  simply a  column of
  3082.         increasing values.  InstaCalc will look at the first value in the "bin
  3083.         range", count how many cells in the value range are less than or equal
  3084.         to that value, and insert that count into the cell to the right of the
  3085.         first bin.
  3086.  
  3087.         InstaCalc then  looks at the second  value in the "bin  range", counts
  3088.         how many cells in the value range are less than or equal to that value
  3089.         but are  greater than the  previous bin value, and  inserts that count
  3090.         into the cell to the right of the second bin.   This continues through
  3091.         the last cell in the "bin range".
  3092.  
  3093.         Finally, InstaCalc counts the number of cells in the value range which
  3094.         are  greater than the  last cell in  the "bin range",  and places that
  3095.         count to the right of the cell just under the "bin range".
  3096.  
  3097.         Summary
  3098.  
  3099.         1. Define the range containing your values.
  3100.  
  3101.         2. Define the column range containing your bin values.  The bin values
  3102.         must be in increasing order.
  3103.  
  3104.         3. InstaCalc will determine how many cells in the value  range fall in
  3105.         each of the "bins" in the bin range.  The result for each bin  will be
  3106.         placed in the cell to the right of each bin.
  3107.  
  3108.         By graphing  (as a bar graph)  the result of a  data distribution, you
  3109.         will obtain a histogram of the original data.
  3110.  
  3111.  
  3112.  
  3113.  
  3114.         ---------------------------------------------------------------------
  3115.         /Data Audit
  3116.         ---------------------------------------------------------------------
  3117.         This command  provides several auditing capabilities  which can assist
  3118.         you in finding errors which sneak into your worksheets.
  3119.  
  3120.         Trace     Allows  you  to highlight  all  formulas  which refer  to  a
  3121.                   specific  cell.  InstaCalc  will enter  a trace  mode, where
  3122.  
  3123.  
  3124.                                           45
  3125.  
  3126.  
  3127.  
  3128.  
  3129.                   pressing  <Enter> on  any cell  will highlight  all formulas
  3130.                   which reference that  cell.  All the  standard movement keys
  3131.                   are  available  to  move   through  the  worksheet  to  find
  3132.                   highlighted cells which  may not be on the  screen.  To exit
  3133.                   from Trace mode, simply press <Esc>.
  3134.  
  3135.         Map       Displays your worksheet in a compressed form where each cell
  3136.                   is represented by one of the following characters:
  3137.  
  3138.                   +    Formula
  3139.                   #    Number
  3140.                   A    Text
  3141.                   ?    Error
  3142.  
  3143.                   To exit from map mode, simply press the <Esc> key.
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.         ---------------------------------------------------------------------
  3150.         /Macro Edit
  3151.         ---------------------------------------------------------------------
  3152.         This command allows you to edit or create a  macro.  You will be asked
  3153.         for the name of a  macro to edit.  Pressing <Enter> without entering a
  3154.         macro  name will cause the InstaCalc File Manager to appear on-screen;
  3155.         the macro name may then be chosen from the File Manager.  Once a macro
  3156.         is chosen, the InstaCalc Macro Editor will display the macro and allow
  3157.         you to edit it.  The  following commands are available for editing the
  3158.         macro.
  3159.  
  3160.  
  3161.         <Up> <Down>
  3162.         <Left> <Right> The arrow keys move the cursor  up or down one line, or
  3163.                        left or right one character.
  3164.         <Home>         This key moves the cursor to the beginning of the line.
  3165.         <End>          This key moves the cursor to the end of the line.
  3166.         <Ctrl><Right>  This key moves the cursor one word to the right.
  3167.         <Ctrl><Left>   This key moves the cursor one word to the left.
  3168.         <Ctrl><Home>   This key moves the cursor to the top of the file.
  3169.         <Ctrl><End>    This key moves the cursor to the end of the file.
  3170.         <PgDn>         This key moves the cursor down one screen.
  3171.         <PgUp>         This key moves the cursor up one screen.
  3172.         <BkSp>         This  key deletes  the  character to  the  left of  the
  3173.                        cursor and shifts the  following characters in the line
  3174.                        to the left to fill in the empty space.
  3175.         <Ctrl><BkSp>   This key deletes the entire line.
  3176.         <Del>          This key  deletes the  character underneath  the cursor
  3177.                        and shifts the following characters in the line to  the
  3178.                        left to fill in the empty space.
  3179.         <Ins>          This key  toggles between  insert and overwrite  modes.
  3180.                        When you are  in insert mode,  typing a character  will
  3181.                        insert the  new character into  the line  at the  point
  3182.                        where the cursor is. The character under the cursor and
  3183.                        those to the  right of  the cursor are  shifted to  the
  3184.                        right  to make room for the new character. When you are
  3185.                        in overwrite mode, typing  a character will replace the
  3186.  
  3187.  
  3188.                                           46
  3189.  
  3190.  
  3191.  
  3192.  
  3193.                        character  under  the cursor  with  the  new character.
  3194.                        When  you are  in insert  mode, the  cursor will  be an
  3195.                        underline.   In  overwrite mode  the cursor  will be  a
  3196.                        solid block.
  3197.  
  3198.         <F1> Help      This key causes a help screen to appear which lists all
  3199.                        of the commands available for text editing.
  3200.  
  3201.         <F2> Mark      This  key turns on marking at the current line.  Moving
  3202.                        the cursor after pressing this key causes lines between
  3203.                        that   line  and   the  new   cursor  position   to  be
  3204.                        highlighted.  Pressing <F2> a second time will turn off
  3205.                        text marking.
  3206.  
  3207.         <F3> Cut       Pressing this key with  marking turned on (<F2>) causes
  3208.                        the marked lines to be  cut out of the file  and placed
  3209.                        in a buffer.   You may then move to another location in
  3210.                        the file and  use the <F4> key to paste  the lines back
  3211.                        into the file.  The buffer will only  hold one block of
  3212.                        lines, so  if you cut data a  second time, the new data
  3213.                        replaces the older data in the buffer.
  3214.  
  3215.         <F4> Paste     This  keys causes  the  contents of  the  buffer to  be
  3216.                        pasted into the file at the cursor location.  This does
  3217.                        not  clear the buffer, so you may paste the same buffer
  3218.                        data into more than one location.
  3219.  
  3220.         <F5> DelLine   This command deletes the line the cursor is on.
  3221.  
  3222.         <F6> Search    This command allows you  to search for a string  in the
  3223.                        file.  You will be asked to enter the text  you want to
  3224.                        search for.  Simply enter the text, and the cursor will
  3225.                        be  moved to  the next  occurrence of  that text.   The
  3226.                        search is case insensitive, which means that hello will
  3227.                        match hello, Hello, or HeLlO.
  3228.  
  3229.         <F7> Save      This command  allows you  to save  the current file  to
  3230.                        disk without having to exit.
  3231.  
  3232.         <F10> Exit     This  command allows you to  exit from the  editor.  If
  3233.                        you  have made  any changes  to the  file, you  will be
  3234.                        asked if you want to save it first.
  3235.  
  3236.  
  3237.  
  3238.         ---------------------------------------------------------------------
  3239.         /Macro List
  3240.         ---------------------------------------------------------------------
  3241.         This command  lists all of the  macros in the current  directory.  The
  3242.         command uses the InstaCalc  File Manager to find  files with the  .MAC
  3243.         extension.
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.  
  3250.  
  3251.  
  3252.                                           47
  3253.  
  3254.  
  3255.  
  3256.  
  3257.         ---------------------------------------------------------------------
  3258.         /Macro Run
  3259.         ---------------------------------------------------------------------
  3260.         This command executes  a macro (or application program).   You will be
  3261.         asked for  the  name of  a macro  to run.   Pressing  the <Enter>  key
  3262.         without indicating a  macro to  be run will  cause the InstaCalc  File
  3263.         Manager to appear on-screen.  You may  then choose the macro to be run
  3264.         using  the File  Manager.   For  information  on creating  macros  and
  3265.         application programs, see the section InstaCalc Applications.
  3266.  
  3267.  
  3268.  
  3269.         ---------------------------------------------------------------------
  3270.         /OpSys
  3271.         ---------------------------------------------------------------------
  3272.         This command allows you to temporarily return to the DOS command line,
  3273.         where you  can execute DOS commands  or other programs.   When you are
  3274.         ready to return to InstaCalc, simply type EXIT at the DOS prompt.
  3275.  
  3276.         IMPORTANT:  Never run TSRs from the /OpSys command line (this includes
  3277.         the DOS  PRINT command).   Doing so can  cause unexpected problems  to
  3278.         occur.
  3279.  
  3280.         This command is not available when running as a pop up.
  3281.  
  3282.  
  3283.         ---------------------------------------------------------------------
  3284.         /Quit
  3285.         ---------------------------------------------------------------------
  3286.         This command  allows  you to  leave InstaCalc  entirely.   This is  an
  3287.         intelligent  exit command;  if you have  made changes,  InstaCalc will
  3288.         allow  you to save the  file before exiting.  If  no changes have been
  3289.         made, InstaCalc will simply exit the program.
  3290.  
  3291.         When running InstaCalc as a pop  up program, you will not be asked  to
  3292.         confirm exiting, because your data is not lost when you quit.
  3293.  
  3294.         If changes  have been made  to the Worksheet  since the last  time you
  3295.         saved it, you will be asked if you want to lose the changes you made.
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309.  
  3310.  
  3311.  
  3312.  
  3313.  
  3314.  
  3315.  
  3316.                                           48
  3317.  
  3318.  
  3319.  
  3320.  
  3321.         BUILT-IN FUNCTIONS
  3322.         ------------------
  3323.         InstaCalc  provides  built-in  functions  which you  can  use  in your
  3324.         formulas.  These built-in  functions each begin with the  character @,
  3325.         and are often called at functions.
  3326.  
  3327.         Most of these functions require one or more arguments.  An argument is
  3328.         a  value which  the function  uses as  an input  to provide  an output
  3329.         value.   An argument may be a number, a  text string, a reference to a
  3330.         value  in  another cell,  or  another formula.    In the  case  of the
  3331.         statistical functions, an argument may also be a range of cells.  If a
  3332.         function requires arguments, then they are enclosed in parentheses and
  3333.         immediately  follow  the name  of  the @function.   If  more  than one
  3334.         argument is  required, they must  be separated from each  other with a
  3335.         comma.
  3336.  
  3337.         A built-in function can  return either a numerical  or text value  and
  3338.         may be treated exactly like a number or text would be.
  3339.  
  3340.         Example:
  3341.         A cell contains the formula =2*@ABS(-3).
  3342.  
  3343.         @ABS is  the name of  a built-in  function which returns  the absolute
  3344.         (positive) value of its argument.
  3345.  
  3346.         -3 is the argument to the function.
  3347.  
  3348.         The function returns  a value of  3, and is  used in  the rest of  the
  3349.         formula  just like the number 3.  The value of the entire formula is 6
  3350.         (2 times the value of the @function).
  3351.  
  3352.         If the value that  a function returns is an error, it  will return the
  3353.         special value ERROR.  A formula which contains a function with a value
  3354.         of ERROR will also return ERROR as the value for the cell it is in.
  3355.  
  3356.  
  3357.         Mathematical
  3358.         ------------
  3359.         InstaCalc's  math  functions  allow  your  formulas  to  perform  more
  3360.         sophisticated  mathematical operations  than  the operators  alone can
  3361.         provide.
  3362.  
  3363.         Trigonometric
  3364.         -------------
  3365.         InstaCalc's  trigonometry   functions  work   the  same  way   as  the
  3366.         mathematical functions, but they specialize in working with angles.
  3367.  
  3368.         All  angle arguments  and results  are  in radians.   To  convert from
  3369.         degrees to radians, use the @RADIAN function.  To convert from radians
  3370.         to degrees, use the @DEGREE function.
  3371.  
  3372.         Statistical
  3373.         -----------
  3374.         InstaCalc's statistical  functions allow you to  analyze and summarize
  3375.         your data in a variety of  ways.  The statistical functions  calculate
  3376.         and  return various  statistics of  a list  of values.   The  list may
  3377.         consist  of numbers, references to values in other cells, formulas, or
  3378.  
  3379.  
  3380.                                           49
  3381.  
  3382.  
  3383.  
  3384.  
  3385.         a range of cells.  Ranges of cells are defined by using the cell names
  3386.         of two opposite  corners of the  range separated  by two periods  (for
  3387.         example:  C14..D16).   Each  individual  item  in  the  list  must  be
  3388.         separated by a comma.
  3389.  
  3390.         For example, suppose you  want to sum 1.23, the value in  the cell A1,
  3391.         and the values in each cell in the range defined by  the cells C14 and
  3392.         D16.  You would simply use the formula:
  3393.  
  3394.         =@SUM(1.23,A1,C14..D16)
  3395.  
  3396.  
  3397.         Financial
  3398.         ---------
  3399.         InstaCalc's  financial functions  allow you  to perform  many powerful
  3400.         analyses.  Functions include  formulas to compute time value  of money
  3401.         calculations, depreciation calculations, and growth rate calculations.
  3402.  
  3403.  
  3404.         Date/Time
  3405.         ---------
  3406.         InstaCalc  represents dates as the  number of days  since December 31,
  3407.         1899.  For example:
  3408.  
  3409.         Jan 1, 1900 = 1
  3410.         Jan 2, 1900 = 2
  3411.  
  3412.         and so on.
  3413.  
  3414.         Time  is represented as  a fraction of  a day  (starting at midnight).
  3415.         For example:
  3416.  
  3417.         midnight = 0.0
  3418.         noon = 0.5 because it is half way through the day,
  3419.         6:00PM = 0.75 because it is 3/4 way through the day,
  3420.  
  3421.         and so on.
  3422.  
  3423.         This  allows  dates and  times to  be  manipulated with  ordinary math
  3424.         operations.   For example, you could  find out what  day,  month,  and
  3425.         year 90  days from today  is by simply adding  90 to the  number which
  3426.         represents today's date. 
  3427.  
  3428.         Logical
  3429.         -------
  3430.         The InstaCalc logical functions  evaluate their arguments to determine
  3431.         one  thing: truth or falsity.  Typically, logical functions supply the
  3432.         value 1 as the representative of truth, and 0 as the representative of
  3433.         falsity.
  3434.  
  3435.         Macro
  3436.         -----
  3437.         InstaCalc provides several @functions which are designed to be used in
  3438.         application programs.
  3439.  
  3440.         String
  3441.         ------
  3442.  
  3443.  
  3444.                                           50
  3445.  
  3446.  
  3447.  
  3448.  
  3449.         The InstaCalc string  functions allow you to process character strings
  3450.         more efficiently.  They are often used  when importing data from other
  3451.         programs, printing, and in macros that process strings.
  3452.  
  3453.         Data
  3454.         ----
  3455.         InstaCalc's data functions  allow your  formulas to access  data in  a
  3456.         variety  of ways, from  lookup tables,  to access  to global  and cell
  3457.         statistics.
  3458.  
  3459.  
  3460.  
  3461.         ---------------------------------------------------------------------
  3462.         @ABS                                                      Mathematical
  3463.         ---------------------------------------------------------------------
  3464.         Function  Returns the absolute (positive) value of a number.
  3465.  
  3466.         Syntax    @ABS(x)
  3467.                   where x is a number, a cell address, or a calculated value.
  3468.  
  3469.  
  3470.  
  3471.         ---------------------------------------------------------------------
  3472.         @ACOS                                                     Trigonometry
  3473.         ---------------------------------------------------------------------
  3474.         Function  Returns the arc cosine of a number.
  3475.  
  3476.         Syntax    @ACOS(x)
  3477.                   where x is a number, a cell address, or a calculated value.
  3478.  
  3479.         Remarks   This  function returns  the angle  whose cosine  is x.   The
  3480.                   value of  x must be between  -1 and 1, or  @ACOS will return
  3481.                   the value ERROR.  The value of the angle returned will be in
  3482.                   radians, and will  lie between 0  and pi.   If you want  the
  3483.                   result  to be  in  degrees instead,  then  use the  @DEGREES
  3484.                   function to convert the result.
  3485.  
  3486.  
  3487.         ---------------------------------------------------------------------
  3488.         @ASIN                                                     Trigonometry
  3489.         ---------------------------------------------------------------------
  3490.         Function  Returns the arc sine of a number.
  3491.  
  3492.         Syntax    @ASIN(x)
  3493.                   where x is a number, a cell address, or a calculated value. 
  3494.  
  3495.         Remarks   This function returns the angle whose sine is x.   The value
  3496.                   of x must be between -1 to 1, or @ASIN will return the value
  3497.                   ERROR.   The value of the angle returned will be in radians,
  3498.                   and will lie between pi/2 and -pi/2.  If you want the result
  3499.                   to  be in degrees instead, then use the @DEGREES function to
  3500.                   convert the result.
  3501.  
  3502.  
  3503.  
  3504.  
  3505.  
  3506.  
  3507.  
  3508.                                           51
  3509.  
  3510.  
  3511.  
  3512.  
  3513.         ---------------------------------------------------------------------
  3514.         @ATAN                                                     Trigonometry
  3515.         ---------------------------------------------------------------------
  3516.         Function  Returns the arc tangent of a number.
  3517.  
  3518.         Syntax    @ATAN(x)
  3519.                   where x is a number, a cell address, or a calculated value.
  3520.  
  3521.         Remarks   This function returns  the angle  whose tangent is  x.   The
  3522.                   value of the angle returned is in radians.  If  you want the
  3523.                   result  to be  in  degrees instead,  then  use the  @DEGREES
  3524.                   function to convert the result.
  3525.  
  3526.                   Since  the @ATAN function finds  an angle based  on a single
  3527.                   value, the result is limited to quadrants I and IV (-pi/2 to
  3528.                   pi/2).  If you want to find a 4 quadrant angle, you must use
  3529.                   the @ATAN2 function.
  3530.  
  3531.  
  3532.  
  3533.  
  3534.         ---------------------------------------------------------------------
  3535.         @ATAN2                                                    Trigonometry
  3536.         ---------------------------------------------------------------------
  3537.         Function  Returns the four quadrant arc tangent of y/x.
  3538.  
  3539.         Syntax    @ATAN2(x,y)
  3540.                   where x  and y  are numbers,  cell addresses, or  calculated
  3541.                   values.
  3542.  
  3543.         Remarks   This function returns the angle whose tangent is y/x.
  3544.  
  3545.                   The @ATAN2 function calculates the  value of the arc tangent
  3546.                   differently  than  the  @ATAN  function.   Where  the  @ATAN
  3547.                   function takes as its argument the value of the tangent, the
  3548.                   @ATAN2  function calculates  the  value of  the arc  tangent
  3549.                   using the x and y coordinates.  The result will be a full  4
  3550.                   quadrant angle, and will be between -pi and pi.
  3551.  
  3552.  
  3553.  
  3554.         ---------------------------------------------------------------------
  3555.         @AVG                                                       Statistical
  3556.         ---------------------------------------------------------------------
  3557.         Function  Returns the average of a list of values.
  3558.  
  3559.         Syntax    @AVG(list)
  3560.                   where  list is a  list of values  separated by commas,  or a
  3561.                   range containing values, or some combination of the two.
  3562.  
  3563.         Remarks   This function calculates the average, or mean, of the values
  3564.                   in list.
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.  
  3571.  
  3572.                                           52
  3573.  
  3574.  
  3575.  
  3576.  
  3577.         ---------------------------------------------------------------------
  3578.         @CELL                                                             Data
  3579.         ---------------------------------------------------------------------
  3580.         Function  Returns information about a cell.
  3581.  
  3582.         Syntax    @CELL(attribute,range)
  3583.                   where  attribute  is  a  string  in  quotations  or  a  cell
  3584.                   reference; and range is a cell range, named or otherwise.
  3585.  
  3586.         Remarks   This function returns information  about the upper left cell
  3587.                   in range.   Although the  information is only  for a  single
  3588.                   cell, range must  be entered as a range instead  of a single
  3589.                   cell.    Attribute must  be  one of  the  following strings:
  3590.                   "address", "col", "contents", "format", "prefix", "protect",
  3591.                   "row",  or   "type".    @CELL   is  primarily  for   use  in
  3592.                   applications  to determine  certain characteristics  about a
  3593.                   cell.
  3594.  
  3595.                   attribute      @CELL returns
  3596.                   "address"      the name of the cell (for example B5)
  3597.  
  3598.                   "col"          the column number of the cell (1 through 256)
  3599.  
  3600.                   "contents"     the contents of the cell
  3601.  
  3602.                   "format"       the formatting of the cell
  3603.                                  0 Default
  3604.                                  1 Fixed
  3605.                                  2 Currency
  3606.                                  3 Percent
  3607.                                  4 Scientific
  3608.                                  5 Hidden
  3609.                                  6 Text
  3610.                                  7 Fixed with commas
  3611.                                  8 Currency with commas
  3612.                                  9 Percent with commas
  3613.                                  10 dd-mmm-yy
  3614.                                  11 dd-mmm
  3615.                                  12 mmm-yy
  3616.                                  13 mm/dd/yy
  3617.                                  14 Month DD, YYYY
  3618.                                  15 HH:MM AM/PM
  3619.                                  16 HH:MM Military
  3620.                                  17 General
  3621.  
  3622.                   "prefix"       the justification character of the cell
  3623.                                  ' if left justified
  3624.                                  " if right justified
  3625.                                  ^ if centered
  3626.                                  blank if the cell doesn't contain text
  3627.  
  3628.                   "protect"      the protection status of the cell
  3629.                                  0 = Not protected, 1 = Protected
  3630.  
  3631.                   "row"          the row number of the cell (1 through 4096)
  3632.  
  3633.                   "type"         the type of data in the cell.
  3634.  
  3635.  
  3636.                                           53
  3637.  
  3638.  
  3639.  
  3640.  
  3641.                                  BLANK,   FORMAT,   NUMBER,   TEXT,   FORMULA,
  3642.                                  TXTFORM, ERROR
  3643.  
  3644.                   "width"        the width of the column the cell is in.
  3645.  
  3646.  
  3647.         ---------------------------------------------------------------------
  3648.         @CHANGED                                                         Macro
  3649.         ---------------------------------------------------------------------
  3650.         Function  Returns the save status of the Worksheet.
  3651.  
  3652.         Syntax    @CHANGED
  3653.  
  3654.         Remarks   This function returns  a value  of 1 (TRUE)  if any  changes
  3655.                   have been made to the Worksheet since it was last saved, and
  3656.                   0 (FALSE) if no changes have been made.
  3657.  
  3658.  
  3659.  
  3660.  
  3661.  
  3662.         ---------------------------------------------------------------------
  3663.         @CHAR                                                           String
  3664.         ---------------------------------------------------------------------
  3665.         Function  Returns a character, based on its ASCII value.
  3666.  
  3667.         Syntax    @CHAR(x)
  3668.                   where x is a number, a cell address, or a calculated value.
  3669.  
  3670.         Remarks   This function returns the ASCII  character for the value  x.
  3671.                   The value of x must lie in the range 1 to 255.
  3672.  
  3673.  
  3674.  
  3675.         ---------------------------------------------------------------------
  3676.         @CHOOSE                                                           Data
  3677.         ---------------------------------------------------------------------
  3678.         Function  Choose an item from a list.
  3679.  
  3680.         Syntax    @CHOOSE(x,y1,y2,y3...yn)
  3681.                   where x is an offset value, and y1...yn is the list of items
  3682.                   to choose from.
  3683.  
  3684.         Remarks   This function performs a simple lookup based on the value of
  3685.                   x.  If x has a value of 1, then @CHOOSE will return y1; if x
  3686.                   has a  value of 2, then  @CHOOSE will return y2,  and so on.
  3687.                   The items in the list can be numeric, text, or both.
  3688.  
  3689.                   If x is less than  1 or greater than the number  of items in
  3690.                   the list, then @CHOOSE will return the value ERROR.
  3691.  
  3692.         ---------------------------------------------------------------------
  3693.         @CINT                                                        Financial
  3694.         ---------------------------------------------------------------------
  3695.         Function  Returns the principal and interest after compounding.
  3696.  
  3697.         Syntax    @CINT(principal,int,n,q)
  3698.  
  3699.  
  3700.                                           54
  3701.  
  3702.  
  3703.  
  3704.  
  3705.                   where principal, int,  n, and q are numbers, cell addresses,
  3706.                   or calculated values.
  3707.  
  3708.         Remarks   This  function returns  the  total amount  of principal  and
  3709.                   interest accumulated  after compounding.   principal is  the
  3710.                   starting principal amount,  int is the rate  of interest per
  3711.                   period,  n is the number of periods,  and q is the number of
  3712.                   times per period that interest is compounded.
  3713.  
  3714.  
  3715.  
  3716.         ---------------------------------------------------------------------
  3717.         @CNAME                                                            Data
  3718.         ---------------------------------------------------------------------
  3719.         Function  Returns the name of a cell.
  3720.  
  3721.         Syntax    @CNAME(col,row)
  3722.                   where col and row are numbers, cell addresses, or calculated
  3723.                   values.
  3724.  
  3725.         Remarks   This  functions  returns the  name of  a  cell based  on the
  3726.                   column and row number of the cell.
  3727.  
  3728.  
  3729.  
  3730.         ---------------------------------------------------------------------
  3731.         @CODE                                                           String
  3732.         ---------------------------------------------------------------------
  3733.         Function  Returns the ASCII value of a character.
  3734.  
  3735.         Syntax    @CODE(string)
  3736.                   where string is a string in quotations, or a cell address.
  3737.  
  3738.         Remarks   This function returns the ASCII value of the first character
  3739.                   in  string.  If the  length of string  is zero, or  is not a
  3740.                   string, then @CODE will return the value ERROR.
  3741.  
  3742.         ---------------------------------------------------------------------
  3743.         @COLS                                                             Data
  3744.         ---------------------------------------------------------------------
  3745.         Function  Returns the number of columns in a range.
  3746.  
  3747.         Syntax    @COLS(range)
  3748.                   where range is a cell range, either named or otherwise.
  3749.  
  3750.         Remarks   This function returns the number of columns in range.
  3751.  
  3752.  
  3753.  
  3754.  
  3755.         ---------------------------------------------------------------------
  3756.         @COS                                                      Trigonometry
  3757.         ---------------------------------------------------------------------
  3758.         Function  Returns the cosine of an angle.
  3759.  
  3760.         Syntax    @COS(x)
  3761.                   where x is a number, a cell address, or a calculated value.
  3762.  
  3763.  
  3764.                                           55
  3765.  
  3766.  
  3767.  
  3768.  
  3769.         Remarks   This function returns the cosine of the angle x.   x must be
  3770.                   in  radians.   If x  is in  degrees, then  you must  use the
  3771.                   @RADIANS function to convert x to radians first.  The result
  3772.                   of @COS will be between -1 and 1.
  3773.  
  3774.  
  3775.  
  3776.  
  3777.         ---------------------------------------------------------------------
  3778.         @COSH                                                     Trigonometry
  3779.         ---------------------------------------------------------------------
  3780.         Function  Returns the hyperbolic cosine of an angle.
  3781.  
  3782.         Syntax    @COSH(x)
  3783.                   where x is a number, a cell address, or a calculated value.
  3784.  
  3785.         Remarks   This function returns the hyperbolic cosine of the  angle x.
  3786.                   x must be in radians.  If x is in degrees, then you must use
  3787.                   the @RADIANS function to convert x to radians first.
  3788.  
  3789.         ---------------------------------------------------------------------
  3790.         @COUNT                                                     Statistical
  3791.         ---------------------------------------------------------------------
  3792.         Function  Returns the number of values in a list.
  3793.  
  3794.         Syntax    @COUNT(list)
  3795.                   where list  is a  list of  items separated by  commas, or  a
  3796.                   range containing values, or some combination of the two.
  3797.  
  3798.         Remarks   This  function counts all of the cells in list which contain
  3799.                   data.    Blank  cells  in  a  range  are  not  counted,  but
  3800.                   individual cell references are  always counted, even if they
  3801.                   are blank.
  3802.  
  3803.  
  3804.  
  3805.  
  3806.         ---------------------------------------------------------------------
  3807.         @CTERM                                                       Financial
  3808.         ---------------------------------------------------------------------
  3809.         Function  Returns the number of  periods for an investment to  reach a
  3810.                   future value.
  3811.  
  3812.         Syntax    @CTERM(rate,fv,pv)
  3813.                   where  rate,  fv and  pv  are  numbers,  cell addresses,  or
  3814.                   calculated values.
  3815.  
  3816.         Remarks   This function returns the number of periods  needed to reach
  3817.                   a given  future value, using a  specified initial investment
  3818.                   and a periodic interest rate.
  3819.  
  3820.                   rate is the periodic  interest rate, fv is the  future value
  3821.                   to be reached, and pv is the initial investment.
  3822.  
  3823.                   @CTERM  is often used in  retirement planning, where a fixed
  3824.                   amount  of money  (usually  large) is  necessary to  sustain
  3825.                   retirement.    @CTERM   can  determine  whether  a   certain
  3826.  
  3827.  
  3828.                                           56
  3829.  
  3830.  
  3831.  
  3832.  
  3833.                   investment  is  likely to  reach  the monetary  goal  in the
  3834.                   necessary time period.
  3835.  
  3836.  
  3837.         ---------------------------------------------------------------------
  3838.         @DATE                                                        Date/Time
  3839.         ---------------------------------------------------------------------
  3840.         Function  Returns a date number for a date.
  3841.  
  3842.         Syntax    @DATE(year,month,day)
  3843.                   where year, month,  and day are numbers,  cell addresses, or
  3844.                   calculated values.
  3845.  
  3846.         Remarks   This function returns the  date number for year, month,  and
  3847.                   day.   The date  number is the  number of days  from Dec 31,
  3848.                   1899 to the given date.  Formatting a cell containing a date
  3849.                   number  using the /Range Format Date  commands will turn the
  3850.                   number  into a  readable date.   The  key use  for all  date
  3851.                   commands is  in date arithmetic--the  determination of  time
  3852.                   between two periods.
  3853.  
  3854.  
  3855.  
  3856.         ---------------------------------------------------------------------
  3857.         @DAY                                                         Date/Time
  3858.         ---------------------------------------------------------------------
  3859.         Function  Returns the day of the month.
  3860.  
  3861.         Syntax    @DAY(date number)
  3862.                   where date number is a  number, cell address, or  calculated
  3863.                   value.
  3864.  
  3865.         Remarks   This function returns the day of the month of date number.
  3866.  
  3867.  
  3868.  
  3869.  
  3870.         ---------------------------------------------------------------------
  3871.         @DDB                                                         Financial
  3872.         ---------------------------------------------------------------------
  3873.         Function  Returns  the amount  of depreciation  of an asset  using the
  3874.                   double-declining balance method.
  3875.  
  3876.         Syntax    @DDB(cost,salvage,life,period)
  3877.                   where  cost, salvage,  life,  and period  are numbers,  cell
  3878.                   addresses, or calculated values.
  3879.  
  3880.         Remarks   This function  calculates the  amount of depreciation  of an
  3881.                   asset   using   the  Double-Declining   Balance   method  of
  3882.                   accelerated depreciation.
  3883.  
  3884.                   cost is the cost of the asset, salvage  is the salvage value
  3885.                   of  the asset after it  is totally depreciated,  life is the
  3886.                   useful  life of the asset,  and period is  the period within
  3887.                   that life in which the depreciation is being calculated.
  3888.  
  3889.                   The depreciation for a period is:
  3890.  
  3891.  
  3892.                                           57
  3893.  
  3894.  
  3895.  
  3896.  
  3897.                   (book value * 2) / life
  3898.  
  3899.                   where the book value for a period is:
  3900.  
  3901.                   cost - (total depreciation for all prior periods)
  3902.  
  3903.                   The total depreciation over the life of the asset will never
  3904.                   exceed the assets cost - salvage value.
  3905.  
  3906.  
  3907.  
  3908.         ---------------------------------------------------------------------
  3909.         @DEGREES                                                  Trigonometry
  3910.         ---------------------------------------------------------------------
  3911.         Function  Converts radians to degrees.
  3912.  
  3913.         Syntax    @DEGREES(x)
  3914.                   where x is a number, a cell address, or a calculated value.
  3915.  
  3916.         Remarks   Although all  of InstaCalc's trigonometry  functions operate
  3917.                   on angular values expressed in  radians, it is often  easier
  3918.                   to analyze  angular data  when  expressed in  degrees.   The
  3919.                   @DEGREES function  provides an easy  way to convert  a value
  3920.                   from radians to degrees.
  3921.  
  3922.  
  3923.  
  3924.         ---------------------------------------------------------------------
  3925.         @DIR                                                             Macro
  3926.         ---------------------------------------------------------------------
  3927.         Function  Returns the name of the current directory.
  3928.  
  3929.         Syntax    @DIR
  3930.  
  3931.         Remarks   This function returns the name of the current directory.
  3932.  
  3933.  
  3934.  
  3935.  
  3936.         ---------------------------------------------------------------------
  3937.         @ENVIRON                                                         Macro
  3938.         ---------------------------------------------------------------------
  3939.         Function  Returns the value of an environment variable.
  3940.  
  3941.         Syntax    @ENVIRON(var)
  3942.  
  3943.         Remarks   This  function allows  your  applications to  check the  DOS
  3944.                   environment for variables which may be stored there.
  3945.  
  3946.  
  3947.  
  3948.         ---------------------------------------------------------------------
  3949.         @ERROR                                                            Data
  3950.         ---------------------------------------------------------------------
  3951.         Function  Returns the value ERROR.
  3952.  
  3953.         Syntax    @ERROR
  3954.  
  3955.  
  3956.                                           58
  3957.  
  3958.  
  3959.  
  3960.  
  3961.         Remarks   This function causes the ERROR flag to appear in the cell in
  3962.                   which it is entered.
  3963.  
  3964.  
  3965.  
  3966.  
  3967.         ---------------------------------------------------------------------
  3968.         @EXACT                                                          String
  3969.         ---------------------------------------------------------------------
  3970.         Function  Compares two text strings.
  3971.  
  3972.         Syntax    @EXACT(string1,string2)
  3973.                   where string1 and string2 are strings in quotations or  cell
  3974.                   addresses.
  3975.  
  3976.         Remarks   This  function  returns the  value 1  (TRUE) if  string1 and
  3977.                   string2  are identical, or the  value 0 (FALSE)  if they are
  3978.                   not.
  3979.  
  3980.                   Comparing two strings with  the @EXACT function is different
  3981.                   than comparing them with the  = operator.  Strings  compared
  3982.                   with the @EXACT function must be exactly the same for a TRUE
  3983.                   result,  while  strings compared  with  the  = operator  may
  3984.                   differ in case and still be considered equal.
  3985.  
  3986.  
  3987.         ---------------------------------------------------------------------
  3988.         @EXP                                                      Mathematical
  3989.         ---------------------------------------------------------------------
  3990.         Function  Returns e raised to a power.
  3991.  
  3992.         Syntax    @EXP(x)
  3993.                   where x is a number, a cell address, or a calculated value.
  3994.  
  3995.         Remarks   This function returns e^x.   e is approximately 2.71828.   x
  3996.                   must be  less than 85.2  or an overflow  will occur  and the
  3997.                   value  ERROR will be returned.  This function is the inverse
  3998.                   of  the @LN function.   To use the value  of e in a formula,
  3999.                   use @EXP(1).
  4000.  
  4001.  
  4002.  
  4003.  
  4004.         ---------------------------------------------------------------------
  4005.         @FACT                                                     Mathematical
  4006.         ---------------------------------------------------------------------
  4007.         Function  Returns the factorial of a number.
  4008.  
  4009.         Syntax    @FACT(x)
  4010.                   where x is a number, a cell address, or a calculated value.
  4011.  
  4012.         Remarks   The factorial of x is x * (x-1) * (x-2)...* 1.
  4013.  
  4014.                   x must be between 0 and 30 (inclusive), otherwise @FACT will
  4015.                   overflow and return ERROR.  x should be an integer; if it is
  4016.                   not  an integer,  the  program will  use  the value  of  the
  4017.                   argument rounded to the nearest integer.
  4018.  
  4019.  
  4020.                                           59
  4021.  
  4022.  
  4023.  
  4024.  
  4025.  
  4026.  
  4027.  
  4028.         ---------------------------------------------------------------------
  4029.         @FALSE                                                         Logical
  4030.         ---------------------------------------------------------------------
  4031.         Function  Returns the value FALSE (0).
  4032.  
  4033.         Syntax    @FALSE
  4034.  
  4035.         Remarks   This function returns the value 0 (FALSE).
  4036.  
  4037.                   The primary purpose of  the @FALSE function is to  help make
  4038.                   logical formulas easier to read.
  4039.  
  4040.         ---------------------------------------------------------------------
  4041.         @FILE                                                            Macro
  4042.         ---------------------------------------------------------------------
  4043.         Function  Returns various information regarding a file.
  4044.  
  4045.         Syntax    @FILE(filename,attribute)
  4046.                   where filename  and attribute  are strings in  quotations or
  4047.                   cell addresses.
  4048.  
  4049.         Remarks   This  function returns  various information  about the  file
  4050.                   named  filename.  Attribute is one  of the following strings
  4051.                   which tells  what information to return:  "PATH", "DATE", or
  4052.                   "EXIST".   filename can be a full  path name, or just a file
  4053.                   name by itself.   If filename is just the  name of the file,
  4054.                   InstaCalc will look for the  file in the current  directory.
  4055.                   @FILE is intended  for use in  application programs only  to
  4056.                   test various characteristics of files your program uses.
  4057.  
  4058.                   "PATH"    returns the full pathname of filename.
  4059.  
  4060.                   "DATE"    returns a  combined date  and time number  for the
  4061.                             date and time that filename was last written to.
  4062.  
  4063.                   "EXIST"   returns TRUE  (logical 1) if filename  exists, and
  4064.                             FALSE (logical 0) if it doesn't.
  4065.  
  4066.  
  4067.         ---------------------------------------------------------------------
  4068.         @FIND                                                           String
  4069.         ---------------------------------------------------------------------
  4070.         Function  Finds the occurrence of a string in a longer string.
  4071.  
  4072.         Syntax    @FIND(substring,string,n)
  4073.                   where  substring and  string are  strings in  quotations, or
  4074.                   cell  addresses,  and  n  is  a  number,  cell  address,  or
  4075.                   calculated value.
  4076.  
  4077.         Remarks   substring is the  part of a  string to find,  string is  the
  4078.                   longer  string  in  which  to  find  the  substring,  and  n
  4079.                   designates where in the string to begin looking.  The search
  4080.                   is case-sensitive.
  4081.  
  4082.  
  4083.  
  4084.                                           60
  4085.  
  4086.  
  4087.  
  4088.  
  4089.                   @FIND  returns the  position  in string  where substring  is
  4090.                   found.  That is,  if substring begins at the  20th character
  4091.                   string, 20  will be returned.   If no match  is found, @FIND
  4092.                   returns a value of 0.
  4093.  
  4094.  
  4095.  
  4096.  
  4097.         ---------------------------------------------------------------------
  4098.         @FNAME                                                           Macro
  4099.         ---------------------------------------------------------------------
  4100.         Function  Returns the name of the file currently in memory.
  4101.  
  4102.         Syntax    @FNAME
  4103.  
  4104.         Remarks   The @FNAME function returns  the name of the  file currently
  4105.                   being worked on.
  4106.  
  4107.  
  4108.  
  4109.         ---------------------------------------------------------------------
  4110.         @FORMAT                                                         String
  4111.         ---------------------------------------------------------------------
  4112.         Function  Converts a number to a string using a selected format.
  4113.  
  4114.         Syntax    @FORMAT(x,form,dp)
  4115.                   where  x,  form, and  dp  are  numbers,  cell addresses,  or
  4116.                   calculated values.
  4117.  
  4118.         Remarks   This function converts a number to a string using the format
  4119.                   form and dp decimal places.  @FORMAT is especially useful in
  4120.                   applications where  you want  to print  out  values using  a
  4121.                   specific format such as currency.
  4122.  
  4123.                   form FORMAT
  4124.                   0    Default
  4125.                   1    Fixed
  4126.                   2    Currency
  4127.                   3    Percent
  4128.                   4    Scientific
  4129.                   5    Hidden
  4130.                   6    Text
  4131.                   7    Fixed with commas
  4132.                   8    Currency with commas
  4133.                   9    Percent with commas
  4134.                   10   dd-mmm-yy
  4135.                   11   dd-mmm
  4136.                   12   mmm-yy
  4137.                   13   mm/dd/yy
  4138.                   14   Month DD, YYYY
  4139.                   15   HH:MM AM/PM
  4140.                   16   HH:MM Military
  4141.                   17   General
  4142.  
  4143.                                    
  4144.  
  4145.  
  4146.  
  4147.  
  4148.                                           61
  4149.  
  4150.  
  4151.  
  4152.  
  4153.         ---------------------------------------------------------------------
  4154.         @FRAC                                                     Mathematical
  4155.         ---------------------------------------------------------------------
  4156.         Function  Returns the fractional part of a number.
  4157.  
  4158.         Syntax    @FRAC(x)
  4159.                   where x is a number, a cell address, or a calculated value.
  4160.  
  4161.         Remarks   This function returns only  the part of x which  comes after
  4162.                   the  decimal  point.   If  x  is  negative,  then the  value
  4163.                   returned by @FRAC will be negative also.
  4164.  
  4165.  
  4166.  
  4167.         ---------------------------------------------------------------------
  4168.         @FV                                                          Financial
  4169.         ---------------------------------------------------------------------
  4170.         Function  Returns the future value of an annuity.
  4171.  
  4172.         Syntax    @FV(pmt,int,term)
  4173.                   where  pmt,  int,  term  are  numbers,  cell  addresses,  or
  4174.                   calculated values.
  4175.  
  4176.         Remarks   This function calculates the future value of an annuity.
  4177.  
  4178.                   pmt is the amount of payment per period in the annuity,  int
  4179.                   is  the  discount rate  per period,  and  term is  the total
  4180.                   number of payments to be made.
  4181.  
  4182.                   @FV assumes that payments are  being made at the end of  the
  4183.                   period.  If payments are due at the beginning of the period,
  4184.                   simply multiply the answer by (1+int).
  4185.  
  4186.                   IMPORTANT: The interest rate must be a per period rate.  For
  4187.                   example, if  the term is 240,  indicating (probably) monthly
  4188.                   payments over twenty years, the interest rate must also be a
  4189.                   monthly rate.   Thus, a 12% yearly rate  would be entered as
  4190.                   1%.
  4191.  
  4192.  
  4193.  
  4194.  
  4195.         ---------------------------------------------------------------------
  4196.         @GLOBAL                                                           Data
  4197.         ---------------------------------------------------------------------
  4198.         Function  Returns information about the current Worksheet.
  4199.  
  4200.         Syntax    @GLOBAL(attribute)
  4201.  
  4202.         Remarks   This function returns  global information about the  current
  4203.                   worksheet.  Attribute is one  of the following strings which
  4204.                   tells  what  information  to  return:  "prefix",  "protect",
  4205.                   "width", "format","calc", "insert", or  "enter".  @GLOBAL is
  4206.                   intended  for use  in application  programs to  test various
  4207.                   characteristics of the current worksheet.
  4208.  
  4209.                   attribute      @GLOBAL returns
  4210.  
  4211.  
  4212.                                           62
  4213.  
  4214.  
  4215.  
  4216.  
  4217.                   "prefix"       the global justification character
  4218.                                  ' if left justified
  4219.                                  " if right justified
  4220.                                  ^ if centered
  4221.  
  4222.                   "protect"      the Worksheet protection
  4223.                                  0 = Disabled, 1 = Enabled
  4224.  
  4225.                   "width"        the global column width
  4226.  
  4227.                   "format"       the global format
  4228.                                  0 Default
  4229.                                  1 Fixed
  4230.                                  2 Currency
  4231.                                  3 Percent
  4232.                                  4 Scientific
  4233.                                  5 Hidden
  4234.                                  6 Text
  4235.                                  7 Fixed with commas
  4236.                                  8 Currency with commas
  4237.                                  9 Percent with commas
  4238.                                  10 dd-mmm-yy
  4239.                                  11 dd-mmm
  4240.                                  12 mmm-yy
  4241.                                  13 mm/dd/yy
  4242.                                  14 Month DD, YYYY
  4243.                                  15 HH:MM AM/PM
  4244.                                  16 HH:MM Military
  4245.                                  17 General
  4246.  
  4247.  
  4248.                   "calc"         the recalculation mode
  4249.                                  0 = Manual, 1 = Automatic
  4250.  
  4251.                   "insert"       the status of insert mode
  4252.                                  0 = Off, 1 = On
  4253.  
  4254.                   "enter"        the status of <Ctrl><F9> Enter mode
  4255.                                  0 = Off, 1 = On
  4256.  
  4257.  
  4258.  
  4259.         ---------------------------------------------------------------------
  4260.         @HLOOKUP                                                          Data
  4261.         ---------------------------------------------------------------------
  4262.         Function  Looks up an item in a horizontal lookup table.
  4263.  
  4264.         Syntax    @HLOOKUP(x,range,row offset)
  4265.                   where range is  a range  of cells, named  or otherwise;  row
  4266.                   offset is a number, cell address, or calculated value; and x
  4267.                   is a number, text, cell address, or calculated value.
  4268.  
  4269.         Remarks   This function looks up and retrieves a value or text  from a
  4270.                   horizontal  lookup table.  range is the range of cells which
  4271.                   makes up the lookup table.
  4272.  
  4273.                   If x  is text, @HLOOKUP will compare x with each cell in the
  4274.  
  4275.  
  4276.                                           63
  4277.  
  4278.  
  4279.  
  4280.  
  4281.                   top row of  range, and if  a match is  found, will move  row
  4282.                   offset rows from that cell, and will return the value in the
  4283.                   resulting cell.  If x does not match any of the cells in the
  4284.                   top row of range, then @HLOOKUP will return the value ERROR.
  4285.  
  4286.                   If x is  a value  instead of text,  @HLOOKUP will compare  x
  4287.                   with each cell in the top row of range until it finds a cell
  4288.                   which is  greater than or equal  to x.  This  means that the
  4289.                   values in the  top row of  range must be in  ascending order
  4290.                   for @HLOOKUP to work correctly.  If the value in the cell is
  4291.                   equal to x, @HLOOKUP will consider  it a match.  If the cell
  4292.                   is greater than x,  @HLOOKUP will move back to  the previous
  4293.                   cell and consider it a match.  For example, if the values in
  4294.                   the top  row of range  are 100, 200,  300, and 400,  and the
  4295.                   value  of x  is  250, then  @HLOOKUP  will search  until  it
  4296.                   reaches  300, and  will  then move  back  and use  the  cell
  4297.                   containing  200  as  the match.    When  a  match is  found,
  4298.                   @HLOOKUP  will move row offset rows from that cell, and will
  4299.                   return  the value in  the resulting cell.   If  x is smaller
  4300.                   than the first cell in the top row, @HLOOKUP will return the
  4301.                   value ERROR.
  4302.  
  4303.  
  4304.  
  4305.         ---------------------------------------------------------------------
  4306.         @HOUR                                                        Date/Time
  4307.         ---------------------------------------------------------------------
  4308.         Function  Returns the hour of a time number.
  4309.  
  4310.         Syntax    @HOUR(time number)
  4311.                   where time  number is a number, cell  address, or calculated
  4312.                   value.
  4313.  
  4314.         Remarks   This function returns the hour of  time number.  A result of
  4315.                   0  represents  midnight,  1  represents 1:00  p.m.,  and  23
  4316.                   represents 11:00 p.m.
  4317.  
  4318.                   time number  should be a value  between 0 and  1.  InstaCalc
  4319.                   will  not  ignore a  mixed number;  it  will simply  use the
  4320.                   fractional part.
  4321.  
  4322.                   The @HOUR  function is most  often used in  conjunction with
  4323.                   other  date  and  time functions  to  return  only the  hour
  4324.                   portion of a previously entered value.  
  4325.  
  4326.  
  4327.  
  4328.         ---------------------------------------------------------------------
  4329.         @IF                                                            Logical
  4330.         ---------------------------------------------------------------------
  4331.         Function  Returns one of two values depending on a condition.
  4332.  
  4333.         Syntax    @IF(condition,x,y)
  4334.                   where  condition is  a conditional  statement, often  in the
  4335.                   form of an equation, other times  in the form of a  "greater
  4336.                   than" or "less than" statement  (or other inequality); and x
  4337.                   and y are values, functions, or strings.
  4338.  
  4339.  
  4340.                                           64
  4341.  
  4342.  
  4343.  
  4344.  
  4345.         Remarks   This functions evaluates  condition and returns  x if it  is
  4346.                   TRUE, and y if it is FALSE.
  4347.  
  4348.                   x and y may be both numeric, both text, or one of each.
  4349.  
  4350.  
  4351.         ---------------------------------------------------------------------
  4352.         @INDEX                                                            Data
  4353.         ---------------------------------------------------------------------
  4354.         Function  Looks up data in a array.
  4355.  
  4356.         Syntax    @INDEX(range,col,row)
  4357.                   where range is a range of cells, named or otherwise; and col
  4358.                   and row are numbers, cell addresses, or calculated values.
  4359.  
  4360.         Remarks   This  function  looks up  and  returns data  from  an array.
  4361.                   range is the array, and col and row are the offsets into the
  4362.                   array.  The  top row of range has a row  offset of 0 and the
  4363.                   left column of range has a column offset of 0.
  4364.  
  4365.  
  4366.  
  4367.         ---------------------------------------------------------------------
  4368.         @INT                                                      Mathematical
  4369.         ---------------------------------------------------------------------
  4370.         Function  Returns the integer part of a number.
  4371.  
  4372.         Syntax    @INT(x)
  4373.                   where x is a number, a cell address, or a calculated value.
  4374.  
  4375.         Remarks   This  function returns the integer part of a value, which is
  4376.                   the part of the argument which  is to the left (in front of)
  4377.                   the decimal point.   The sign of  the value returned  is the
  4378.                   same as that of the argument.
  4379.  
  4380.                   The  @INT  function  does   not  round  values  for  further
  4381.                   calculation.   (To round  numbers, use  @ROUND.)  It  merely
  4382.                   truncates the numbers; only the integer part of the value is
  4383.                   used in further calculations.   The sign of the value can be
  4384.                   either positive or negative.  
  4385.  
  4386.  
  4387.  
  4388.  
  4389.         ---------------------------------------------------------------------
  4390.         @IRR                                                         Financial
  4391.         ---------------------------------------------------------------------
  4392.         Function  Returns  the internal  rate of  return of  a series  of cash
  4393.         flows.
  4394.  
  4395.         Syntax    @IRR(estimate,range)
  4396.                   where  estimate is  a  number, cell  address, or  calculated
  4397.                   value; and range is a range of cells, named or otherwise.
  4398.  
  4399.         Remarks   This  function calculates  the  discount rate  at which  the
  4400.                   present value  of an outlay (investment)  equals the present
  4401.                   value  of  cash  inflows  stemming  (presumably)  from  that
  4402.  
  4403.  
  4404.                                           65
  4405.  
  4406.  
  4407.  
  4408.  
  4409.                   investment.   Another way of saying  this is that it  is the
  4410.                   discount  rate at which the net present value of outlays and
  4411.                   inflows is zero.
  4412.  
  4413.                   estimate should be a value between 0 and 1 that represents a
  4414.                   reasonable guess at  the rate of return  for the investment,
  4415.                   and range  is a  range of  cells that  contain the  net cash
  4416.                   flows resulting from the investment.  The first value in the
  4417.                   range must  be negative,  indicating an investment  was made
  4418.                   which constituted an outflow of moneys.
  4419.  
  4420.                   It is assumed  that the cash flows that appear  in the range
  4421.                   are received at regular  intervals.  They need not  be even,
  4422.                   but they should at least approximate regular flows.  
  4423.  
  4424.                   The @IRR function further  assumes that the income  from the
  4425.                   investment is reinvested at the rate of return.  If this not
  4426.                   the  case (as with a capital investment in plant equipment),
  4427.                   @IRR  will  be  overstated.   The  amount  of  overstatement
  4428.                   depends on  the disparity  between the  assumed reinvestment
  4429.                   and the actual rate of reinvestment.
  4430.  
  4431.                   Finally,  since @IRR  is calculated  by iteration,  a really
  4432.                   poor  estimate  may  cause  the  function  to  misstate  the
  4433.                   discount rate.
  4434.  
  4435.  
  4436.  
  4437.         ---------------------------------------------------------------------
  4438.         @ISERR                                                         Logical
  4439.         ---------------------------------------------------------------------
  4440.         Function  Tests whether an item is an error.
  4441.  
  4442.         Syntax    @ISERR(x)
  4443.                   where x is a cell reference or a formula.
  4444.  
  4445.         Remarks   This  function is used to  determine whether x  is the value
  4446.                   ERROR.   @ISERR is used  to stop ERROR  values from carrying
  4447.                   through to other parts of the worksheet.
  4448.  
  4449.  
  4450.  
  4451.         ---------------------------------------------------------------------
  4452.         @ISNUM                                                         Logical
  4453.         ---------------------------------------------------------------------
  4454.         Function  Tests whether an item is a number.
  4455.  
  4456.         Syntax    @ISNUM(x)
  4457.                   where x is a cell address or a formula.
  4458.  
  4459.         Remarks   This function returns the value 1 (TRUE) if x is a numerical
  4460.                   value; otherwise it returns the value 0 (FALSE).
  4461.  
  4462.  
  4463.  
  4464.  
  4465.  
  4466.  
  4467.  
  4468.                                           66
  4469.  
  4470.  
  4471.  
  4472.  
  4473.         ---------------------------------------------------------------------
  4474.         @ISTEXT                                                        Logical
  4475.         ---------------------------------------------------------------------
  4476.         Function  Tests whether an item is text.
  4477.  
  4478.         Syntax    @ISTEXT(x)
  4479.                   where x is a cell address or a formula.
  4480.  
  4481.         Remarks   This function  returns the value 1 (TRUE)  if x is a textual
  4482.                   value; otherwise it returns the value 0 (FALSE).
  4483.  
  4484.  
  4485.  
  4486.         ---------------------------------------------------------------------
  4487.         @LEFT                                                           String
  4488.         ---------------------------------------------------------------------
  4489.         Function  Returns the left part of a text string.
  4490.  
  4491.         Syntax    @LEFT(string,n)
  4492.                   where string is a  string in quotations, or a  cell address;
  4493.                   and n is a number, cell address, or calculated value.
  4494.  
  4495.         Remarks   This function returns the leftmost n characters from string.
  4496.  
  4497.  
  4498.  
  4499.         ---------------------------------------------------------------------
  4500.         @LEN                                                            String
  4501.         ---------------------------------------------------------------------
  4502.         Function  Returns the length of a text string.
  4503.  
  4504.         Syntax    @LEN(string)
  4505.                   where string is a string in quotations, or a cell address.
  4506.  
  4507.         Remarks   This function returns the number of characters in string.
  4508.  
  4509.  
  4510.  
  4511.         ---------------------------------------------------------------------
  4512.         @LN                                                       Mathematical
  4513.         ---------------------------------------------------------------------
  4514.         Function  Returns the natural logarithm of a number.
  4515.  
  4516.         Syntax    @LN(x)
  4517.                   where x is a number, a cell address, or a calculated value.
  4518.  
  4519.         Remarks   This function  calculates the natural logarithm  (base e) of
  4520.                   x.   It  is the  inverse of  the @EXP  function.   The value
  4521.                   cannot be  negative or equal to zero, or an ERROR value will
  4522.                   be returned.
  4523.  
  4524.  
  4525.  
  4526.  
  4527.  
  4528.  
  4529.  
  4530.  
  4531.  
  4532.                                           67
  4533.  
  4534.  
  4535.  
  4536.  
  4537.         ---------------------------------------------------------------------
  4538.         @LOG                                                      Mathematical
  4539.         ---------------------------------------------------------------------
  4540.         Function  Returns the common logarithm of a number.
  4541.  
  4542.         Syntax    @LOG(x)
  4543.                   where x is a number, a cell address, or a calculated value.
  4544.  
  4545.  
  4546.         Remarks   The @LOG function returns  the logarithm of x.   It uses the
  4547.                   base 10, and is the reciprocal of exponentiation.  The value
  4548.                   must  be greater than zero; a negative or zero value returns
  4549.                   an ERROR value.
  4550.  
  4551.  
  4552.  
  4553.         ---------------------------------------------------------------------
  4554.         @LOGB                                                     Mathematical
  4555.         ---------------------------------------------------------------------
  4556.         Function  Returns the logarithm (base b) of a number.
  4557.  
  4558.         Syntax    @LOGB(x,b)
  4559.                   where  x and  b are  numbers, cell addresses,  or calculated
  4560.                   values.
  4561.  
  4562.         Remarks   This  function calculates the logarithm  of x.   It uses the
  4563.                   base b,  and is the reciprocal of exponentiation.  x must be
  4564.                   greater  than zero,  otherwise @LOGB  will return  the value
  4565.                   ERROR.
  4566.  
  4567.  
  4568.         ---------------------------------------------------------------------
  4569.         @LOWER                                                          String
  4570.         ---------------------------------------------------------------------
  4571.         Function  Converts all the characters of a text string to lowercase.
  4572.  
  4573.         Syntax    @LOWER(string)
  4574.                   where string is a string in quotations, or a cell address.
  4575.  
  4576.         Remarks   The @LOWER function converts all of the characters in string
  4577.                   to lowercase letters.
  4578.  
  4579.  
  4580.  
  4581.         ---------------------------------------------------------------------
  4582.         @MAX                                                       Statistical
  4583.         ---------------------------------------------------------------------
  4584.         Function  Returns the maximum value from a list of values.
  4585.  
  4586.         Syntax    @MAX(list)
  4587.                   where list  is a list  of values  separated by commas,  or a
  4588.                   range containing values, or some combination of the two.
  4589.  
  4590.         Remarks   This function returns the largest value in list.
  4591.  
  4592.  
  4593.  
  4594.  
  4595.  
  4596.                                           68
  4597.  
  4598.  
  4599.  
  4600.  
  4601.         ---------------------------------------------------------------------
  4602.         @MEMORY                                                          Macro
  4603.         ---------------------------------------------------------------------
  4604.         Function  Returns the amount of memory available.
  4605.  
  4606.         Syntax    @MEMORY
  4607.  
  4608.         Remarks   This  function  returns  the   number  of  bytes  of  memory
  4609.                   available.
  4610.  
  4611.  
  4612.  
  4613.         ---------------------------------------------------------------------
  4614.         @MID                                                            String
  4615.         ---------------------------------------------------------------------
  4616.         Function  Returns the midsection of a text string.
  4617.  
  4618.         Syntax    @MID(string,start,n)
  4619.                   where string is a  string in quotations, or a  cell address;
  4620.                   and start and  n are numbers, cell  addresses, or calculated
  4621.                   values. 
  4622.         Remarks   This  function  searches  string,  starting with  the  start
  4623.                   character, and extracts and returns n characters.
  4624.  
  4625.  
  4626.         ---------------------------------------------------------------------
  4627.         @MIN                                                       Statistical
  4628.         ---------------------------------------------------------------------
  4629.         Function  Returns the minimum value from a list of values.
  4630.  
  4631.         Syntax    @MIN(list)
  4632.                   where list  is a list  of values separated  by commas, or  a
  4633.                   range containing values, or some combination of the two.
  4634.  
  4635.         Remarks   This function returns the smallest value in list.
  4636.  
  4637.  
  4638.  
  4639.  
  4640.         ---------------------------------------------------------------------
  4641.         @MINUTE                                                      Date/Time
  4642.         ---------------------------------------------------------------------
  4643.         Function  Returns the minute of a time number.
  4644.  
  4645.         Syntax    @MINUTE(time number)
  4646.                   where  time number is a  number, cell address, or calculated
  4647.                   value.
  4648.  
  4649.         Remarks   This function returns  the number of  the minute (between  0
  4650.                   and 59) represented by time number.
  4651.  
  4652.                   time  number  should  be  a  value  between  0  and  1  (not
  4653.                   inclusive).    InstaCalc  will  not  ignore  mixed  numbers;
  4654.                   rather, it will extract only the fractional part.
  4655.  
  4656.                   @MINUTE is most often useful  in conjunction with other date
  4657.                   and  time functions.   @MINUTE will extract  only the minute
  4658.  
  4659.  
  4660.                                           69
  4661.  
  4662.  
  4663.  
  4664.  
  4665.                   portion of a time value.
  4666.  
  4667.  
  4668.  
  4669.         ---------------------------------------------------------------------
  4670.         @MOD                                                      Mathematical
  4671.         ---------------------------------------------------------------------
  4672.         Function  Returns the remainder after dividing two numbers.
  4673.  
  4674.         Syntax    @MOD(x,y)
  4675.                   where x  and y  are numbers,  cell addresses,  or calculated
  4676.                   values.
  4677.  
  4678.         Remarks   This function returns the remainder after dividing x by y.
  4679.  
  4680.  
  4681.  
  4682.  
  4683.         ---------------------------------------------------------------------
  4684.         @MONTH                                                       Date/Time
  4685.         ---------------------------------------------------------------------
  4686.         Function  Returns the month of a date number.
  4687.  
  4688.         Syntax    @MONTH(date number)
  4689.                   where date number is  a number, cell address,  or calculated
  4690.                   value.
  4691.  
  4692.         Remarks   This function returns only the month portion (1..12) of date
  4693.                   number.
  4694.  
  4695.  
  4696.  
  4697.         ---------------------------------------------------------------------
  4698.         @NMONTH                                                      Date/Time
  4699.         ---------------------------------------------------------------------
  4700.         Function  Returns the name of a month.
  4701.  
  4702.         Syntax    @NMONTH(x)
  4703.                   where x is a number, cell address, or calculated value.
  4704.  
  4705.         Remarks   The @NMONTH function returns the name of month x.
  4706.  
  4707.                   @NMONTH  is  often  used  in  conjunction  with  the  @MONTH
  4708.                   function to return the month name of a date number.
  4709.  
  4710.  
  4711.  
  4712.         ---------------------------------------------------------------------
  4713.         @NOW                                                         Date/Time
  4714.         ---------------------------------------------------------------------
  4715.         Function  Returns the current date and time numbers.
  4716.  
  4717.         Syntax    @NOW
  4718.  
  4719.         Remarks   This function reads  the system clock and returns a combined
  4720.                   date and  time number for  the current  date and time.   The
  4721.                   integer part of the  result will be the date number  for the
  4722.  
  4723.  
  4724.                                           70
  4725.  
  4726.  
  4727.  
  4728.  
  4729.                   current  date, and the fractional part of the result will be
  4730.                   the time number for the current time.
  4731.  
  4732.  
  4733.         ---------------------------------------------------------------------
  4734.         @NPV                                                         Financial
  4735.         ---------------------------------------------------------------------
  4736.         Function  Returns the net  present value  of a series  of future  cash
  4737.         flows.
  4738.  
  4739.         Syntax    @NPV(int,range)
  4740.                   where  int  is a  number, a  cell  address, or  a calculated
  4741.                   value, and range is a range of cells, named or otherwise.
  4742.  
  4743.         Remarks   This function calculates  the net present value  of a series
  4744.                   of  future cash flows in range, given the discount rate int.
  4745.                   Each  of the  future  cash flows  are  brought back  to  the
  4746.                   present; that is, each  flow receives its equivalent present
  4747.                   value.
  4748.  
  4749.                   The period of the discount must agree with the period of the
  4750.                   cash flows.   That is, if the  cash flows are  yearly flows,
  4751.                   then the  discount rate must be  a yearly rate; if  the cash
  4752.                   flows are monthly,  then the discount rate  must be monthly.
  4753.                   Generally, yearly cash flows will be  accurate enough.  Even
  4754.                   if  the flows actually come  on a monthly  basis, summing up
  4755.                   those flows into a  single yearly flow will only  change the
  4756.                   answer by a small percentage.
  4757.  
  4758.                   @NPV assumes that the period between cash flows is constant.
  4759.                   @NPV  assumes  end-of-period-payments.    For  beginning-of-
  4760.                   period-payments, multiply the answer by (1+int).
  4761.  
  4762.  
  4763.  
  4764.         ---------------------------------------------------------------------
  4765.         @PI                                                       Trigonometry
  4766.         ---------------------------------------------------------------------
  4767.         Function  Returns the value of pi (3.14159...).
  4768.  
  4769.         Syntax    @PI
  4770.  
  4771.  
  4772.  
  4773.  
  4774.  
  4775.         ---------------------------------------------------------------------
  4776.         @PMT                                                         Financial
  4777.         ---------------------------------------------------------------------
  4778.         Function  Returns the payment required to amortize a loan amount.
  4779.  
  4780.         Syntax    @PMT(prin,int,term)
  4781.                   where prin,  int, and term  are numbers, cell  addresses, or
  4782.                   calculated values.
  4783.  
  4784.         Remarks   This  function calculates  the periodic payment  required to
  4785.                   amortize a loan amount, given  the amount of principal,  the
  4786.  
  4787.  
  4788.                                           71
  4789.  
  4790.  
  4791.  
  4792.  
  4793.                   periodic interest rate, and the number of payments.
  4794.  
  4795.                   prin is the total  amount of principal, int is  the periodic
  4796.                   interest rate, and  term is  the number of  payments in  the
  4797.                   loan.
  4798.  
  4799.                   The @PMT function assumes a fixed rate of interest.  It also
  4800.                   requires  (like all  of  the financial  functions) that  the
  4801.                   interest  and term  in the  argument  are expressed  in like
  4802.                   intervals;  that  is,  a  monthly term  requires  a  monthly
  4803.                   interest rate.
  4804.  
  4805.         ---------------------------------------------------------------------
  4806.         @POINTER                                                          Data
  4807.         ---------------------------------------------------------------------
  4808.         Function  Returns information about the current cell.
  4809.  
  4810.         Syntax    @POINTER(attribute)
  4811.                   where  attribute  is  a  string  in  quotations  or  a  cell
  4812.                   reference.
  4813.  
  4814.         Remarks   This function returns various types of information about the
  4815.                   cell  which the cell pointer is currently in.  This function
  4816.                   is  intended  for use  in  application  programs which  need
  4817.                   information about  the current  cell.   attribute determines
  4818.                   what  information  is  returned,  and  must  be  one of  the
  4819.                   following strings; "address",  "col", "contents",  "format",
  4820.                   "prefix", "protect", "row", or "type".
  4821.  
  4822.         Example   attribute      @POINTER returns
  4823.                   "address"      the name of the current cell (for example B5)
  4824.  
  4825.                   "col"          the column number of the current cell (1 thru
  4826.                                  256)
  4827.  
  4828.                   "contents"     the contents of the current cell
  4829.  
  4830.                   "format"       the formatting of the current cell
  4831.                                  0 Default
  4832.                                  1 Fixed
  4833.                                  2 Currency
  4834.                                  3 Percent
  4835.                                  4 Scientific
  4836.                                  5 Hidden
  4837.                                  6 Text
  4838.                                  7 Fixed with commas
  4839.                                  8 Currency with commas
  4840.                                  9 Percent with commas
  4841.                                  10 dd-mmm-yy
  4842.                                  11 dd-mmm
  4843.                                  12 mmm-yy
  4844.                                  13 mm/dd/yy
  4845.                                  14 Month DD, YYYY
  4846.                                  15 HH:MM AM/PM
  4847.                                  16 HH:MM Military
  4848.                                  17 General
  4849.  
  4850.  
  4851.  
  4852.                                           72
  4853.  
  4854.  
  4855.  
  4856.  
  4857.                   "prefix"       the  justification  character of  the current
  4858.                                  cell
  4859.                                  ' if left justified
  4860.                                  " if right justified
  4861.                                  ^ if centered
  4862.                                  blank if the cell doesn't contain text
  4863.  
  4864.                   "protect"      the protection status of the current cell
  4865.                                  0 = Not protected, 1 = Protected
  4866.  
  4867.                   "row"          the row number of the current cell (1 through
  4868.                                  4096)
  4869.  
  4870.                   "type"         the type of data in the current cell
  4871.                                  BLANK,   FORMAT,   NUMBER,   TEXT,   FORMULA,
  4872.                                  TXTFORM, ERROR
  4873.  
  4874.  
  4875.  
  4876.  
  4877.         ---------------------------------------------------------------------
  4878.         @PROPER                                                         String
  4879.         ---------------------------------------------------------------------
  4880.         Function  Capitalizes the first letter of each word in a text string.
  4881.  
  4882.         Syntax    @PROPER(string)
  4883.                   where string is a string in quotations, or a cell address.
  4884.  
  4885.         Remarks   This function converts  the first letter of  words in string
  4886.                   to uppercase.
  4887.  
  4888.                   @PROPER  will only  recognize  words that  are separated  by
  4889.                   spaces, or other non alpha characters.
  4890.  
  4891.  
  4892.  
  4893.  
  4894.         ---------------------------------------------------------------------
  4895.         @PV                                                          Financial
  4896.         ---------------------------------------------------------------------
  4897.         Function  Returns the present value of an annuity.
  4898.  
  4899.         Syntax    @PV(pmt,int,term)
  4900.                   where pmt,  int, and term  are numbers,  cell addresses,  or
  4901.                   calculated values.
  4902.  
  4903.         Remarks   This function  calculates the  present value of  an annuity,
  4904.                   given the periodic payment,  the periodic interest rate, and
  4905.                   the number of periods.
  4906.  
  4907.                   pmt is the payment per period,  int is the interest rate per
  4908.                   period, and term is the total number of payments.
  4909.  
  4910.                   The @PV function does  precisely the same thing as  the @NPV
  4911.                   function, except that all  payments are equal.  Thus,  it is
  4912.                   only  necessary to enter the  amount once, rather  than as a
  4913.                   series of values.
  4914.  
  4915.  
  4916.                                           73
  4917.  
  4918.  
  4919.  
  4920.  
  4921.                   The interest rate and term must agree; monthly payments must
  4922.                   be accompanied by a monthly term.
  4923.  
  4924.                   @PV  assumes  end-of-period-payments.     For  beginning-of-
  4925.                   period-payments, multiply the answer by (1+int).
  4926.  
  4927.  
  4928.  
  4929.  
  4930.         ---------------------------------------------------------------------
  4931.         @QUARTER                                                     Date/Time
  4932.         ---------------------------------------------------------------------
  4933.         Function  The Quarter Function
  4934.  
  4935.         Syntax    @QUARTER(date number)
  4936.                   where date number is  a number, cell address,  or calculated
  4937.                   value.
  4938.  
  4939.         Remarks   This  function returns the number of the quarter of the year
  4940.                   (1 to  4) of  date  number.   The quarters  are: Quarter  1,
  4941.                   January  1 to  March  31; Quarter  2,  April 1  to  June 30;
  4942.                   Quarter 3, July  1 to September 30; and Quarter 4, October 1
  4943.                   to December 31.
  4944.  
  4945.  
  4946.  
  4947.         ---------------------------------------------------------------------
  4948.         @RADIANS                                                  Trigonometry
  4949.         ---------------------------------------------------------------------
  4950.         Function  Converts degrees to radians.
  4951.  
  4952.         Syntax    @RADIANS(x)
  4953.                   where x is  a number, a cell address, or a calculated value.
  4954.  
  4955.         Remarks   This function converts the angle x from degrees to radians.
  4956.  
  4957.                   Since InstaCalc's trigonometry  functions require angles  to
  4958.                   be expressed in radians, the @RADIANS function is useful for
  4959.                   making this conversion.
  4960.  
  4961.         ---------------------------------------------------------------------
  4962.         @RAND                                                     Mathematical
  4963.         ---------------------------------------------------------------------
  4964.         Function  Returns a uniformly distributed random number.
  4965.  
  4966.         Syntax    @RAND
  4967.  
  4968.         Remarks   This  function generates  a random  number which  is greater
  4969.                   than or equal to  zero and is less  than one.  The  value of
  4970.                   @RAND  will change to a new random  value each time the cell
  4971.                   (not the Worksheet) is recalculated.  
  4972.  
  4973.  
  4974.  
  4975.  
  4976.  
  4977.  
  4978.  
  4979.  
  4980.                                           74
  4981.  
  4982.  
  4983.  
  4984.  
  4985.         ---------------------------------------------------------------------
  4986.         @RATE                                                        Financial
  4987.         ---------------------------------------------------------------------
  4988.         Function  Returns the interest rate at which a present value will grow
  4989.                   to a future value.
  4990.  
  4991.         Syntax    @RATE(pv,fv,term)
  4992.                   where  pv, fv,  and  term are  numbers,  cell addresses,  or
  4993.                   calculated values.
  4994.  
  4995.         Remarks   This function returns  the interest rate at  which a present
  4996.                   value  will  grow into  a future  value  during a  number of
  4997.                   periods.  pv is  the present value amount of  an investment,
  4998.                   fv is the future value amount of the investment, and term is
  4999.                   the number of periods.
  5000.  
  5001.                   The periods are assumed to be regular intervals.  Converting
  5002.                   the compound growth rate  on a yearly basis, given  that the
  5003.                   term is expressed in months, simply requires that the answer
  5004.                   be multiplied by 12.
  5005.  
  5006.         ---------------------------------------------------------------------
  5007.         @REPEAT                                                         String
  5008.         ---------------------------------------------------------------------
  5009.         Function  Repeats text a given number of times.
  5010.  
  5011.         Syntax    @REPEAT(string,n)
  5012.                   where  string is a string  in quotations or  a cell address;
  5013.                   and n is a number, cell address, or calculated value.
  5014.  
  5015.         Remarks   This function returns string repeated n times.
  5016.  
  5017.  
  5018.  
  5019.         ---------------------------------------------------------------------
  5020.         @REPLACE                                                        String
  5021.         ---------------------------------------------------------------------
  5022.         Function  Replaces a substring in a string with a new string.
  5023.  
  5024.         Syntax    @REPLACE(string,start,n,new string)
  5025.                   where  string and  new string  are strings in  quotations or
  5026.                   cell addresses; and start and n are numbers, cell addresses,
  5027.                   or calculated values.
  5028.  
  5029.         Remarks   This function  removes n characters from  string at position
  5030.                   start, and inserts new string at the same position.
  5031.  
  5032.  
  5033.  
  5034.         ---------------------------------------------------------------------
  5035.         @RIGHT                                                          String
  5036.         ---------------------------------------------------------------------
  5037.         Function  Returns the right part of a text string.
  5038.  
  5039.         Syntax    @RIGHT(string,n)
  5040.                   where  string is a string  in quotations or  a cell address,
  5041.                   and n is a number, cell address, or calculated value. 
  5042.  
  5043.  
  5044.                                           75
  5045.  
  5046.  
  5047.  
  5048.  
  5049.         Remarks   This function extracts and returns n characters from the end
  5050.                   of string.  If n is greater than the number of characters in
  5051.                   string, then the entire string is returned.
  5052.  
  5053.  
  5054.  
  5055.         ---------------------------------------------------------------------
  5056.         @ROUND                                                    Mathematical
  5057.         ---------------------------------------------------------------------
  5058.         Function  Rounds a value to a given number of decimal places.
  5059.  
  5060.         Syntax    @ROUND(x,n)
  5061.                   where  x and  n are numbers,  cell addresses,  or calculated
  5062.                   values.
  5063.  
  5064.         Remarks   This function returns the value of x rounded to n places.
  5065.  
  5066.                   n  can be either positive  or negative; when  n is negative,
  5067.                   the  program  rounds n  digits to  the  left of  the decimal
  5068.                   point.   When n is positive, the  program rounds n digits to
  5069.                   the right of the decimal.
  5070.  
  5071.  
  5072.  
  5073.         ---------------------------------------------------------------------
  5074.         @ROWS                                                             Data
  5075.         ---------------------------------------------------------------------
  5076.         Function  Returns the number of rows in a range.
  5077.  
  5078.         Syntax    @ROWS(range)
  5079.  
  5080.         Remarks   This function returns the number of rows in range.  @ROWS is
  5081.                   particularly useful when used with named ranges.
  5082.  
  5083.  
  5084.  
  5085.  
  5086.         ---------------------------------------------------------------------
  5087.         @SAMPSTD                                                   Statistical
  5088.         ---------------------------------------------------------------------
  5089.         Function  Returns the standard deviation of a list of sample values.
  5090.  
  5091.         Syntax    @SAMPSTD(list)
  5092.                   where list  is a  list of values  separated by commas,  or a
  5093.                   range containing values, or some combination of the two.
  5094.  
  5095.         Remarks   This  function  calculates  the  standard  deviation  of the
  5096.                   values in list.
  5097.  
  5098.  
  5099.  
  5100.         ---------------------------------------------------------------------
  5101.         @SAMPVAR                                                   Statistical
  5102.         ---------------------------------------------------------------------
  5103.         Function  Returns the variance of a list of sample values.
  5104.  
  5105.         Syntax    @SAMPVAR(list)
  5106.  
  5107.  
  5108.                                           76
  5109.  
  5110.  
  5111.  
  5112.  
  5113.                   where list  is a list  of values  separated by commas,  or a
  5114.                   range containing values, or some combination of the two.
  5115.  
  5116.         Remarks   This function  returns the variance of  the values contained
  5117.                   in list.
  5118.  
  5119.  
  5120.  
  5121.         ---------------------------------------------------------------------
  5122.         @SECOND                                                      Date/Time
  5123.         ---------------------------------------------------------------------
  5124.         Function  Returns the second of a time number.
  5125.  
  5126.         Syntax    @SECOND(time number)
  5127.                   where  time number  is  a  number,  a  cell  address,  or  a
  5128.                   calculated value.
  5129.  
  5130.         Remarks   This  function returns the  value in seconds  (between 0 and
  5131.                   59) of time number.
  5132.  
  5133.                   time  number should be a  value between 0  and 1.  InstaCalc
  5134.                   will not ignore mixed numbers; rather, it will extract  only
  5135.                   the fractional part.  The argument  may be either a value, a
  5136.                   cell reference to a value, or a  cell reference to a formula
  5137.                   which calculates a value.
  5138.  
  5139.  
  5140.  
  5141.         ---------------------------------------------------------------------
  5142.         @SIGN                                                     Mathematical
  5143.         ---------------------------------------------------------------------
  5144.         Function  Returns the sign of a number.
  5145.  
  5146.         Syntax    @SIGN(x)
  5147.                   where x is a number, a cell address, or a calculated value.
  5148.  
  5149.         Remarks   This function returns the sign of its x.  If  x is negative,
  5150.                   the  function  returns -1.    If  x positive,  the  function
  5151.                   returns 1.  If x is 0, the function returns 0.
  5152.  
  5153.  
  5154.  
  5155.         ---------------------------------------------------------------------
  5156.         @SIN                                                      Trigonometry
  5157.         ---------------------------------------------------------------------
  5158.         Function  Returns the sine of an angle.
  5159.  
  5160.         Syntax    @SIN(x)
  5161.                   where x is a number, a cell address, or a calculated value.
  5162.  
  5163.         Remarks   This function returns the sine of the angle x.  x must be in
  5164.                   radians.  If  x is  in degrees, then  the @RADIANS  function
  5165.                   must be used to convert x to radians.  The value returned by
  5166.                   the @SIN function will always lie between -1 and 1.
  5167.  
  5168.  
  5169.  
  5170.  
  5171.  
  5172.                                           77
  5173.  
  5174.  
  5175.  
  5176.  
  5177.         ---------------------------------------------------------------------
  5178.         @SINH                                                     Trigonometry
  5179.         ---------------------------------------------------------------------
  5180.         Function  Returns the hyperbolic sine of an angle.
  5181.  
  5182.         Syntax    @SINH(x)
  5183.                   where x is a number, a cell address, or a calculated value.
  5184.  
  5185.         Remarks   This function returns the hyperbolic sine of the angle x.  x
  5186.                   must  be in radians.  If x  is in degrees, then the @RADIANS
  5187.                   function must be used to convert x to radians.
  5188.  
  5189.  
  5190.  
  5191.         ---------------------------------------------------------------------
  5192.         @SLN                                                         Financial
  5193.         ---------------------------------------------------------------------
  5194.         Function  Returns the  amount of  depreciation of an  asset using  the
  5195.                   straight line method.
  5196.  
  5197.         Syntax    @SLN(cost,salvage,life)
  5198.                   where cost,  salvage, and life are  numbers, cell addresses,
  5199.                   or calculated values.
  5200.  
  5201.         Remarks   This  function   calculates  and   returns  the   amount  of
  5202.                   depreciation of  an asset using the  Straight-Line method of
  5203.                   accelerated  depreciation.  cost  is the cost  of the asset,
  5204.                   salvage  is the  salvage  value of  the  asset after  it  is
  5205.                   totally  depreciated, and  life is  the useful  life of  the
  5206.                   asset.  
  5207.  
  5208.  
  5209.         ---------------------------------------------------------------------
  5210.         @SQRT                                                     Mathematical
  5211.         ---------------------------------------------------------------------
  5212.         Function  Returns the square root of a value.
  5213.  
  5214.         Syntax    @SQRT(x)
  5215.                   where x is a number, a cell address, or a calculated value.
  5216.  
  5217.         Remarks   This function  returns  the square  root of  x.   x must  be
  5218.                   positive,  since  any two  negative  numbers  multiply to  a
  5219.                   positive number.
  5220.  
  5221.  
  5222.  
  5223.  
  5224.         ---------------------------------------------------------------------
  5225.         @STD                                                       Statistical
  5226.         ---------------------------------------------------------------------
  5227.         Function  Returns the standard deviation of a list of values.
  5228.  
  5229.         Syntax    @STD(list)
  5230.                   where list  is a list  of values separated  by commas, or  a
  5231.                   range containing values, or some combination of the two.
  5232.  
  5233.         Remarks   This  function  calculates  the  standard deviation  of  the
  5234.  
  5235.  
  5236.                                           78
  5237.  
  5238.  
  5239.  
  5240.  
  5241.                   values in list.
  5242.  
  5243.  
  5244.  
  5245.         ---------------------------------------------------------------------
  5246.         @STRING                                                         String
  5247.         ---------------------------------------------------------------------
  5248.         Function  Converts a value to a string.
  5249.  
  5250.         Syntax    @STRING(x,n)
  5251.                   where  x and  n are  values, cell  addresses, or  calculated
  5252.                   values.
  5253.  
  5254.         Remarks   This function converts x to a string with n decimal places.
  5255.  
  5256.  
  5257.  
  5258.  
  5259.  
  5260.         ---------------------------------------------------------------------
  5261.         @SUM                                                       Statistical
  5262.         ---------------------------------------------------------------------
  5263.         Function  Returns the sum of a list of values.
  5264.  
  5265.         Syntax    @SUM(list)
  5266.                   where  list is a  list of values  separated by commas,  or a
  5267.                   range containing values, or some combination of the two.
  5268.  
  5269.         Remarks   This function adds up all of the values contained in list.
  5270.  
  5271.         Example   =@sum(A1..B20)
  5272.  
  5273.  
  5274.  
  5275.  
  5276.         ---------------------------------------------------------------------
  5277.         @SYD                                                         Financial
  5278.         ---------------------------------------------------------------------
  5279.         Function  Returns the amount of depreciation of an asset using the Sum
  5280.                   of the Years' Digits method.
  5281.  
  5282.         Syntax    @SYD(cost,salvage,life,period)
  5283.                   where  cost, salvage,  life,  and period  are numbers,  cell
  5284.                   addresses, or calculated values.
  5285.  
  5286.         Remarks   This function  calculates the  amount of depreciation  of an
  5287.                   asset   using   the   Sum-of-the-Years'-Digits   method   of
  5288.                   accelerated depreciation.
  5289.  
  5290.                   cost is the cost  of the asset, salvage is the salvage value
  5291.                   of  the asset after it  is totally depreciated,  life is the
  5292.                   useful  life of the asset,  and period is  the period within
  5293.                   that life in which the depreciation is being calculated.
  5294.  
  5295.  
  5296.  
  5297.  
  5298.  
  5299.  
  5300.                                           79
  5301.  
  5302.  
  5303.  
  5304.  
  5305.         ---------------------------------------------------------------------
  5306.         @TAN                                                      Trigonometry
  5307.         ---------------------------------------------------------------------
  5308.         Function  Returns the tangent of an angle.
  5309.  
  5310.         Syntax    @TAN(x)
  5311.                   where x is a number, a cell address, or a calculated value.
  5312.  
  5313.         Remarks   This function returns the tangent of the angle x.  x must be
  5314.                   expressed in radians.  If x is in degrees, then the @RADIANS
  5315.                   function must be used to convert x to radians.
  5316.  
  5317.  
  5318.  
  5319.  
  5320.         ---------------------------------------------------------------------
  5321.         @TANH                                                     Trigonometry
  5322.         ---------------------------------------------------------------------
  5323.         Function  Returns the hyperbolic tangent of an angle.
  5324.  
  5325.         Syntax    @TANH(x)
  5326.                   where x is a number, a cell address, or a calculated value.
  5327.  
  5328.         Remarks   This function returns the hyperbolic tangent of the angle x.
  5329.                   x must  be expressed in radians.   If x is  in degrees, then
  5330.                   the @RADIANS function must be used to convert x to radians.
  5331.  
  5332.  
  5333.  
  5334.         ---------------------------------------------------------------------
  5335.         @TERM                                                        Financial
  5336.         ---------------------------------------------------------------------
  5337.         Function  Returns the number of  periods for an investment to  reach a
  5338.                   future value.
  5339.  
  5340.         Syntax    @TERM(pmt,int,fv)
  5341.                   where  pmt,  int, and  fv  are numbers,  cell  addresses, or
  5342.                   calculated values.
  5343.  
  5344.         Remarks   This  function returns the number of terms needed to reach a
  5345.                   specified  future value,  given  an interest  rate (rate  of
  5346.                   return)  and  the value  of equal  payment  to be  made each
  5347.                   period.
  5348.  
  5349.                   pmt is the amount of the equal periodic payments, int is the
  5350.                   interest  rate or  expected rate  of return,  and fv  is the
  5351.                   future value to be reached.
  5352.  
  5353.  
  5354.  
  5355.         ---------------------------------------------------------------------
  5356.         @TIME                                                        Date/Time
  5357.         ---------------------------------------------------------------------
  5358.         Function  Returns a time number for a time.
  5359.  
  5360.         Syntax    @TIME(hour,min,sec)
  5361.                   where  hour, min, and  sec are  numbers, cell  addresses, or
  5362.  
  5363.  
  5364.                                           80
  5365.  
  5366.  
  5367.  
  5368.  
  5369.                   calculated values.
  5370.  
  5371.         Remarks   This  function returns a time  number between 0  and 1, from
  5372.                   hour, min, and sec.
  5373.  
  5374.                   hour is the hour  of the day (between 0 and 23),  min is the
  5375.                   minute  of the  hour  (between 0  and 59),  and  sec is  the
  5376.                   seconds of the minute (between 0 and 59).
  5377.  
  5378.                   It is usually  necessary to format the cell containing @TIME
  5379.                   using the /Cell Format Date command.
  5380.  
  5381.  
  5382.  
  5383.         ---------------------------------------------------------------------
  5384.         @TODAY                                                       Date/Time
  5385.         ---------------------------------------------------------------------
  5386.         Function  Returns the date number of the current date.
  5387.  
  5388.         Syntax    @TODAY
  5389.  
  5390.         Remarks   This function reads  the system clock  and returns the  date
  5391.                   number for the current date.  
  5392.  
  5393.  
  5394.  
  5395.         ---------------------------------------------------------------------
  5396.         @TRIM                                                           String
  5397.         ---------------------------------------------------------------------
  5398.         Function  Trims all extra spaces out of a text string.
  5399.  
  5400.         Syntax    @TRIM(string)
  5401.                   where string is a string in quotations, or a cell address.
  5402.  
  5403.         Remarks   This  function strips  all  extra spaces  from string.   The
  5404.                   result contains only single spaces between words.
  5405.  
  5406.  
  5407.  
  5408.  
  5409.         ---------------------------------------------------------------------
  5410.         @TRUE                                                          Logical
  5411.         ---------------------------------------------------------------------
  5412.         Function  Returns the value TRUE (1).
  5413.  
  5414.         Syntax    @TRUE
  5415.  
  5416.  
  5417.         ---------------------------------------------------------------------
  5418.         @UPPER                                                          String
  5419.         ---------------------------------------------------------------------
  5420.         Function  Converts all the characters of a text string to uppercase.
  5421.  
  5422.         Syntax    @UPPER(string)
  5423.                   where string is a string in quotations, or a cell address.
  5424.  
  5425.  
  5426.  
  5427.  
  5428.                                           81
  5429.  
  5430.  
  5431.  
  5432.  
  5433.         ---------------------------------------------------------------------
  5434.         @VALUE                                                          String
  5435.         ---------------------------------------------------------------------
  5436.         Function  Returns the value that a text string looks like.
  5437.  
  5438.         Syntax    @VALUE(string)
  5439.                   where string is a string in quotations or a cell address.
  5440.  
  5441.         Remarks   This  function converts string into a value that can be used
  5442.                   in formulas, equations, and other calculations.
  5443.  
  5444.  
  5445.  
  5446.         ---------------------------------------------------------------------
  5447.         @VAR                                                       Statistical
  5448.         ---------------------------------------------------------------------
  5449.         Function  Returns the variance of a list of values.
  5450.  
  5451.         Syntax    @VAR(list)
  5452.                   where list is  a list of  values separated by  commas, or  a
  5453.                   range containing values, or some combination of the two.
  5454.  
  5455.         Remarks   This function  returns the variance of  the values contained
  5456.                   in list.
  5457.  
  5458.  
  5459.  
  5460.  
  5461.  
  5462.         ---------------------------------------------------------------------
  5463.         @VLOOKUP                                                          Data
  5464.         ---------------------------------------------------------------------
  5465.         Function  Looks up an item in a vertical lookup table.
  5466.  
  5467.         Syntax    @VLOOKUP(x,range,col offset)
  5468.                   where range is a range of cells, named or otherwise; and col
  5469.                   offset is a number, cell address, or calculated value; and x
  5470.                   is a number, text, cell address, or calculated value.
  5471.  
  5472.         Remarks   This function looks up and retrieves  a value or text from a
  5473.                   vertical  lookup table.  range  is the range  of cells which
  5474.                   makes up the lookup table.
  5475.  
  5476.                   If x is text, @VLOOKUP will  compare x with each cell in the
  5477.                   left column of range, and if a match is found, will move col
  5478.                   offset  columns from that cell, and will return the value in
  5479.                   the resulting cell.  If x does not match any of the cells in
  5480.                   the left  column  of range,  then @VLOOKUP  will return  the
  5481.                   value ERROR.
  5482.  
  5483.                   If x  is a value  instead of  text, @VLOOKUP will  compare x
  5484.                   with each cell in the left column of range until  it finds a
  5485.                   cell which is  greater than or equal to x.   This means that
  5486.                   the  values in the left column of range must be in ascending
  5487.                   order for @VLOOKUP to work correctly.   If the value in  the
  5488.                   cell is equal  to x, @VLOOKUP will consider it  a match.  If
  5489.                   the cell is  greater than x,  @VLOOKUP will  move up to  the
  5490.  
  5491.  
  5492.                                           82
  5493.  
  5494.  
  5495.  
  5496.  
  5497.                   previous cell and consider it a  match.  For example, if the
  5498.                   values in the  left column of range  are 100, 200, 300,  and
  5499.                   400, and  the value of  x is 250, then  @VLOOKUP will search
  5500.                   until it reaches 300,  and will then  move back and use  the
  5501.                   cell containing  200 as the match.   When a  match is found,
  5502.                   @VLOOKUP will  move col offset  columns from that  cell, and
  5503.                   will  return the  value  in the  resulting cell.    If x  is
  5504.                   smaller than  the first cell  in the  left column,  @VLOOKUP
  5505.                   will return the value ERROR. 
  5506.  
  5507.  
  5508.         ---------------------------------------------------------------------
  5509.         @WEEKDAY                                                     Date/Time
  5510.         ---------------------------------------------------------------------
  5511.         Function  Returns the day of the week for a date number.
  5512.  
  5513.         Syntax    @WEEKDAY(date number)
  5514.                   where  date number  is  a  number,  a  cell  address,  or  a
  5515.                   calculated value.
  5516.  
  5517.         Remarks   This  function  returns  the  day of  the  week  (numbered 1
  5518.                   through 7, with  1 being  Sunday and 7  being Saturday)  for
  5519.                   date number.
  5520.  
  5521.  
  5522.  
  5523.         ---------------------------------------------------------------------
  5524.         @YEAR                                                        Date/Time
  5525.         ---------------------------------------------------------------------
  5526.         Function  Returns the year of a date number.
  5527.  
  5528.         Syntax    @YEAR(date number)
  5529.                   where  date number  is  a  number,  a  cell  address,  or  a
  5530.                   calculated value.
  5531.  
  5532.         Remarks   This function returns the year of date number.  For years in
  5533.                   the 1900's, the  final 2 digits are returned.   For the year
  5534.                   2000 @YEAR will return the value 100.
  5535.  
  5536.  
  5537.  
  5538.         ---------------------------------------------------------------------
  5539.         @@                                                                Data
  5540.         ---------------------------------------------------------------------
  5541.         Function  Returns data from a cell through an indirect reference.
  5542.  
  5543.         Syntax    @@(cellname)
  5544.                   where cellname is a string in quotations or a cell address
  5545.  
  5546.         Remarks   This  function will  return the  contents of the  cell named
  5547.                   cellname.
  5548.  
  5549.  
  5550.  
  5551.  
  5552.  
  5553.  
  5554.  
  5555.  
  5556.                                           83
  5557.  
  5558.  
  5559.  
  5560.  
  5561.         INSTACALC APPLICATIONS
  5562.         ----------------------
  5563.         InstaCalc provides  a  programming environment  which you  can use  to
  5564.         create any application, from  a simple time-saving keystroke repeating
  5565.         routine to a fully customized business application.
  5566.  
  5567.         An InstaCalc application simply consists of a text file containing the
  5568.         commands which you would like InstaCalc to execute.  You may give your
  5569.         program files  any valid DOS name, but the extension must be .MAC (for
  5570.         example MYPROG.MAC).   Your program can  consist of keystroke  macros,
  5571.         InstaCalc Command Environment (ICE) commands, or both.
  5572.  
  5573.         Macros
  5574.         ------
  5575.         A keystroke macro  is simply  a sequence of  keystrokes following  the
  5576.         apostrophe  character  '.   When  InstaCalc  encounters  one of  these
  5577.         keystroke  sequences in your program, it  simply treats the keystrokes
  5578.         as if you typed them in yourself.  For example, if you place the line:
  5579.  
  5580.         '/wic<Enter>
  5581.  
  5582.         into  your  application  program,  then InstaCalc  will  automatically
  5583.         insert two columns when it executes this line.   It does this by first
  5584.         typing  the / character  (which will bring  up the menu),  then W (for
  5585.         WorkSheet), then I (for insert), then C (for column),  and finally the
  5586.         <Enter> key (to complete the command).
  5587.  
  5588.  
  5589.         Commands
  5590.         --------
  5591.         The InstaCalc Command Environment (ICE) is a set of instructions which
  5592.         provides  flexible  I/O  capabilities,  numerous  control  structures,
  5593.         printer and DOS  access, and more.  In fact, you may find that the ICE
  5594.         commands  are so versatile that many of your application programs will
  5595.         need few if any keystroke macros.
  5596.  
  5597.  
  5598.  
  5599.         CREATING AN APPLICATION
  5600.         -----------------------
  5601.         The easiest way to create a keystroke macro  is with InstaCalc's Macro
  5602.         Recorder.     To  begin  recording  a  macro,  you  simply  press  the
  5603.         <Ctrl><F10> key.  You  then press the key you want to assign the macro
  5604.         to, and  begin typing the keys to record.   When you are ready to stop
  5605.         recording, just press  the <Ctrl><F10> key again.  Your  macro will be
  5606.         stored in  a file whose name  corresponds to the key  you assigned the
  5607.         macro to.   For example,  a macro assigned  to <Ctrl>T would  be named
  5608.         CTRLT.MAC.
  5609.  
  5610.         Later, when you press <Ctrl>T, InstaCalc will look for the application
  5611.         file CTRLT.MAC, and run it if it exists.  If it doesn't exist, then an
  5612.         error  message will pop  up.  Applications or  keystroke macros can be
  5613.         assigned to just about any key which isn't already defined and used by
  5614.         InstaCalc.   For example,  you can't  redefine  the arrow  keys to  do
  5615.         something else, but you can assign other keys to do the same  thing as
  5616.         the arrow keys.  
  5617.  
  5618.  
  5619.  
  5620.                                           84
  5621.  
  5622.  
  5623.  
  5624.  
  5625.         Applications may also be created with a text editor, just as you would
  5626.         write a program  in any programming language.   InstaCalc applications
  5627.         are not limited to simple keystroke macros.  InstaCalc supplies a rich
  5628.         programming  language  which   provides  flexible  I/O   capabilities,
  5629.         numerous  control  structures  (If/Then/Else, For/Next,  Repeat/Until,
  5630.         While/Endwhile, etc),  access to  DOS commands and  external programs,
  5631.         and more. 
  5632.  
  5633.         These applications can be written using either the simple editor which
  5634.         InstaCalc provides (/Macro  Edit), or outside  of InstaCalc with  your
  5635.         own text  editor.  You  may give your  application any valid  DOS name
  5636.         (the extension must  be .MAC),  including one of  the keystroke  names
  5637.         (such  as  ALTX.MAC).   This  allows  you  to  run extremely  powerful
  5638.         applications at the press of a key.  
  5639.  
  5640.         There are  a number of advantages  to having applications  reside in a
  5641.         file rather than in the worksheet itself.
  5642.  
  5643.         - The application can load  and save data files without being  written
  5644.         over by the incoming worksheet.
  5645.  
  5646.         - You can  create large libraries of applications and macros which can
  5647.         be used  in any worksheet  without having  to load the  entire library
  5648.         into memory each time.
  5649.  
  5650.         - Large applications can  be broken into  smaller parts, and only  the
  5651.         part  which is  running needs  to be  in memory.   This means  you can
  5652.         create  and run applications which  would normally require more memory
  5653.         than is available.
  5654.  
  5655.  
  5656.  
  5657.         RUNNING AN APPLICATION
  5658.         ----------------------
  5659.         Once you have created your application program, you will probably want
  5660.         to  run  it.   There are  many ways  to  run an  InstaCalc application
  5661.         program which you have created.
  5662.  
  5663.         /Macro Run: You can  run an application program  from the menus  using
  5664.         the  /Macro Run  command.   You  will be  asked  for the  name of  the
  5665.         application program to run.   If you press <Enter> without entering  a
  5666.         name, the InstaCalc file manager will pop up from which you may select
  5667.         the application from.
  5668.  
  5669.         Keystroke:  If you  have  named  your  application  with  one  of  the
  5670.         keystroke names, you can run the application by pressing the key.  For
  5671.         example,  if the  application file  is named  CTRLX.MAC then  pressing
  5672.         <Ctrl>X will run the application.
  5673.  
  5674.         Worksheet: You can also give your  application the same name as one of
  5675.         your worksheets (except  that the  extension will be  .MAC instead  of
  5676.         .INS).  When a new data file (.INS) is retrieved, InstaCalc will check
  5677.         for  a  corresponding  application to  run.    For  example, when  you
  5678.         retrieve INVOICE.INS,  then  InstaCalc  will  look  for  and  run  the
  5679.         application INVOICE.MAC (if it exists).
  5680.  
  5681.         If an error is encountered when running  an application, then an error
  5682.  
  5683.  
  5684.                                           85
  5685.  
  5686.  
  5687.  
  5688.  
  5689.         message will  first be  displayed.   Then,  when you  press  a key  to
  5690.         continue, InstaCalc  will load  the application  into the  editor, and
  5691.         place you on the line where the error occurred to allow you to fix the
  5692.         problem.  
  5693.  
  5694.  
  5695.  
  5696.         LANGUAGE DESCRIPTION
  5697.         --------------------
  5698.         An InstaCalc program is one or more lines of text residing in an ASCII
  5699.         file.  There are  four different types of lines  which you can put  in
  5700.         your application; comments, labels, macros,  and commands.  The  first
  5701.         character of each  line of text determines  what type of command  that
  5702.         line is.  Each line of your application program will begin with one of
  5703.         four  different characters,  a pound  sign (#),  an apostrophe  ('), a
  5704.         colon (:), or an exclamation mark (!).
  5705.  
  5706.         Comments
  5707.         --------
  5708.         A line which begins with an  exclamation mark (!) is simply a comment.
  5709.         All of  the  characters on  the  line after  the  ! are  ignored  when
  5710.         InstaCalc  runs the application program.  The sole purpose of comments
  5711.         is to make your programs easier to understand when you read them.
  5712.  
  5713.         Example:
  5714.  
  5715.         !This is a comment
  5716.  
  5717.         This  line is ignored when  InstaCalc encounters it  in an application
  5718.         program.
  5719.  
  5720.  
  5721.         Labels
  5722.         ------
  5723.         A line which begins with a colon (:)  is a label.  A label is simply a
  5724.         string which marks a specific position in the application program.
  5725.  
  5726.         Example:
  5727.  
  5728.         :MyLabel
  5729.  
  5730.         This  line does  nothing  when  it  is  encountered  in  an  InstaCalc
  5731.         application  program.  Some InstaCalc ICE commands (such as #GOTO) use
  5732.         labels as a place to jump to for further processing.
  5733.  
  5734.  
  5735.         Macros
  5736.         ------
  5737.         A line which  begins with an  apostrophe (') is  a sequence of  direct
  5738.         keystrokes  (keystroke macro)  which  you want  InstaCalc to  execute.
  5739.         Keystrokes  which are  printable ASCII  characters  (letters, numbers,
  5740.         symbols,  etc.)  are displayed  in their  printable form.   Keystrokes
  5741.         which  are NOT printable ASCII characters (such as function keys, Ctrl
  5742.         and  Alt key sequences, cursor  movement keys, etc.)  are displayed as
  5743.         the name  of the key enclosed in angle brackets  <>.  For example, the
  5744.         <Enter> key is displayed as <Enter>.
  5745.  
  5746.  
  5747.  
  5748.                                           86
  5749.  
  5750.  
  5751.  
  5752.  
  5753.         Example:
  5754.  
  5755.         '/cfcn2<Enter>
  5756.  
  5757.         This line causes  the current cell to be formatted  as currency with 2
  5758.         decimal  places and  no  commas.    This  is  done  because  InstaCalc
  5759.         processes each  keystroke in  the  line just  as if  you  typed it  in
  5760.         yourself.
  5761.         - The / key is processed, which summons the main menu
  5762.         - The C key is processed, which selects the "Cell" option
  5763.         - The F key is processed, which selects the "Format" option
  5764.         - The C key is processed, which selects the "Currency" option
  5765.         - The N key is processed, which selects the "NoComma" option
  5766.         -  The number  "2" is  processed, which  types 2 in  as the  number of
  5767.         decimal places
  5768.         - The  <Enter> causes the <Enter> key to be  processed (this is one of
  5769.         the special keys), which enters the  number 2 as the number of decimal
  5770.         places.
  5771.  
  5772.         Keystroke macros  can even  be  read from  cells.   Simply follow  the
  5773.         apostrophe  with the  cell  name enclosed  in  square brackets.    For
  5774.         example, if  you want the keystrokes  to be read from  cell B5, simply
  5775.         use the line:
  5776.  
  5777.         '[B5]
  5778.  
  5779.  
  5780.         Commands
  5781.         --------
  5782.         A line  which begins with  a pound  sign (#) is  an InstaCalc  Command
  5783.         Environment (ICE) command.   It  is these commands  which provide  the
  5784.         muscle for sophisticated application  development.  These commands are
  5785.         described in the next section.
  5786.  
  5787.  
  5788.  
  5789.  
  5790.  
  5791.  
  5792.  
  5793.  
  5794.  
  5795.  
  5796.  
  5797.  
  5798.  
  5799.  
  5800.  
  5801.  
  5802.  
  5803.  
  5804.  
  5805.  
  5806.  
  5807.  
  5808.  
  5809.  
  5810.  
  5811.  
  5812.                                           87
  5813.  
  5814.  
  5815.  
  5816.  
  5817.         SPECIAL KEY NAMES
  5818.         -----------------
  5819.         Although  the  letter,  number,  and  symbol  keys   can  be  directly
  5820.         referenced by  their character,  several  keys cannot  be referred  to
  5821.         using a single character.  InstaCalc  gives each of these keys its own
  5822.         name.   When one  of these  keystrokes is  encountered in a  keystroke
  5823.         macro, the name of the key is  surrounded by angle brackets <> so that
  5824.         InstaCalc  can  tell  it apart  from  regular  characters.   When  the
  5825.         keystroke is used as the  name of an application file, then  the angle
  5826.         brackets  (and certain other characters) are not used because DOS will
  5827.         not allow them.   Below is a list of special  keystrokes, and the name
  5828.         of the keystrokes when used both in a macro and as a file name.
  5829.  
  5830.         KEY SEQUENCE        KEYSTROKE NAME      FILE NAME
  5831.         <BkSp>              <BkSp>              N/A
  5832.         <Ctrl><BkSp>        <^BkSp>             N/A
  5833.         <Esc>               <Esc>               N/A
  5834.         <Enter>             <Enter>             N/A
  5835.         <Tab>               <Tab>               N/A
  5836.         <Ctrl>A-
  5837.              <Ctrl>Z *      <CtrlA> - <CtrlZ>   CTRLA.MAC-CTRLZ.MAC
  5838.         <Alt>A-
  5839.              <Alt>Z         <AltA> - <AltZ>     ALTA.MAC-ALTZ.MAC
  5840.         <Home>              <Home>              N/A
  5841.         <End>               <End>               N/A
  5842.         <Left>              <Left>              N/A
  5843.         <Right>             <Right>             N/A
  5844.         <Up>                <Up>                N/A
  5845.         <Down>              <Down>              N/A
  5846.         <PgUp>              <PgUp>              N/A
  5847.         <PgDn>              <PgDn>              N/A
  5848.         <Ins>               <Ins>               N/A
  5849.         <Del>               <Del>               N/A
  5850.         <F1> - <F10>        <F1>-<F10>          N/A
  5851.         <Shift><F1>-
  5852.              <Shift><F10>   <ShF1>-<ShF10>      SHF1.MAC-SHF10.MAC
  5853.         <Ctrl><F1>-
  5854.              <Ctrl><F10>    <^F1>-<^F10>        N/A
  5855.         <Alt><F1>-
  5856.              <Alt><F10>     <AltF1>-<AltF10>    ALTF1-ALTF10.MAC
  5857.         <Ctrl><Left>        <^Left>             N/A
  5858.         <Ctrl><Right>       <^Right>            N/A
  5859.         <Ctrl><Home>        <^Home>             N/A
  5860.         <Ctrl><End>         <^End>              N/A
  5861.         <Ctrl><PgUp>        <^PgUp>             N/A
  5862.         <Ctrl><PgDn>        <^PgDn>             N/A
  5863.  
  5864.         * <Ctrl>H, <Ctrl>I, and <Ctrl>M are not available as file names.
  5865.  
  5866.  
  5867.  
  5868.  
  5869.  
  5870.  
  5871.  
  5872.  
  5873.  
  5874.  
  5875.  
  5876.                                           88
  5877.  
  5878.  
  5879.  
  5880.  
  5881.         THE INSTACALC COMMAND ENVIRONMENT
  5882.         ---------------------------------
  5883.         The  InstaCalc Command Environment (ICE) is a set of powerful commands
  5884.         which you can use in your application programs to create menus, pop up
  5885.         windows, access files, and even run other programs.
  5886.  
  5887.         Each  ICE command is a single word  prefixed with the # character (for
  5888.         example  #OUTPUT).   Most  of these  ICE  commands require  additional
  5889.         information  on the same line.  These additional pieces of information
  5890.         are known as arguments.  If you have more than one argument on a line,
  5891.         you must separate them from each other with either a space or a comma.
  5892.         Also, if any of your  arguments are text strings which have a space or
  5893.         comma in it,  then you must  surround the text  string with quotes  so
  5894.         that InstaCalc knows to keep the text together.
  5895.  
  5896.  
  5897.  
  5898.         ---------------------------------------------------------------------
  5899.         #ASSIGN                                                           Data
  5900.         ---------------------------------------------------------------------
  5901.         Syntax    #ASSIGN cellname value
  5902.  
  5903.         Remarks   This command allows you to assign  a value to a cell without
  5904.                   having to move to it  first.  cellname can be either  a cell
  5905.                   address  or a named range.  value  can be either a number or
  5906.                   text.
  5907.  
  5908.         Example   #ASSIGN B5 123.45
  5909.  
  5910.         ---------------------------------------------------------------------
  5911.         #BLOCK                                                    Input/Output
  5912.         ---------------------------------------------------------------------
  5913.         Syntax    #BLOCK cellname prompt
  5914.  
  5915.         Remarks   This  command displays prompt and allows  you to highlight a
  5916.                   range of  cells.  The  range selected  is stored  as a  text
  5917.                   string in  cellname.   This  cell  can then  be  used as  an
  5918.                   indirect address in range  functions by entering cellname in
  5919.                   square brackets when asked to define a range.
  5920.  
  5921.         Example   #BLOCK D3 "Fill which range with zeros?"
  5922.  
  5923.  
  5924.         ---------------------------------------------------------------------
  5925.         #BOX                                                      Input/Output
  5926.         ---------------------------------------------------------------------
  5927.         Syntax    #BOX x1,y1,x2,y2 save title
  5928.  
  5929.         Remarks   This command displays a box  on the screen.  The  upper left
  5930.                   corner of the box  is located at screen position x1, y1, and
  5931.                   the lower right corner of the box is located at position x2,
  5932.                   y2.  save determines whether InstaCalc saves the contents of
  5933.                   the screen under the  box before displaying it.   If save=0,
  5934.                   then the screen contents are not saved.  If save=1, then the
  5935.                   screen contents  are saved,  and can  be restored using  the
  5936.                   #CLEARBOX  command.   Saving  the  screen contents  requires
  5937.                   extra  memory,  so  if  it isn't  necessary  to  restore the
  5938.  
  5939.  
  5940.                                           89
  5941.  
  5942.  
  5943.  
  5944.  
  5945.                   contents, it is best to set save to 0.  The #RESTORE command
  5946.                   will restore the  InstaCalc screen even if  it wasn't saved,
  5947.                   so you can use #BOX with save=0 to clear the screen to begin
  5948.                   your application.
  5949.  
  5950.         Example   #BOX 1,1,80,25 0 "Main Screen"
  5951.  
  5952.  
  5953.  
  5954.  
  5955.         ---------------------------------------------------------------------
  5956.         #BREAK                                                         Control
  5957.         ---------------------------------------------------------------------
  5958.         Syntax    #BREAK 0/1
  5959.  
  5960.         Remarks   This  command allows you to enable or disable the ability to
  5961.                   break out of an  application program while it is  running by
  5962.                   pressing <Ctrl><F3>.   By default, an  application will exit
  5963.                   when  <Ctrl><F3>  is pressed.    This  command provides  the
  5964.                   capability  to prevent  a  user from  breaking  out of  your
  5965.                   application.   It  is best  to leave  breaking enabled  when
  5966.                   creating your application.
  5967.  
  5968.  
  5969.  
  5970.         ---------------------------------------------------------------------
  5971.         #CALL                                                          Control
  5972.         ---------------------------------------------------------------------
  5973.         Syntax    #CALL label / #RETURN
  5974.  
  5975.         Remarks   This command causes execution of the program to continue  at
  5976.                   label.    When the  #RETURN  statement  is encountered,  the
  5977.                   program branches back to  the line immediately following the
  5978.                   original #CALL command.
  5979.  
  5980.  
  5981.         ---------------------------------------------------------------------
  5982.         #CLEARBOX                                                 Input/Output
  5983.         ---------------------------------------------------------------------
  5984.         Syntax    #CLEARBOX
  5985.  
  5986.         Remarks   This  command clears the last  box placed on  the screen (by
  5987.                   #BOX or #WINDOW) and  replaces the data which was  under it.
  5988.                   This command only has an effect  if #BOX or #WINDOW set  the
  5989.                   save option to 1 (meaning to save the screen contents).
  5990.  
  5991.  
  5992.  
  5993.         ---------------------------------------------------------------------
  5994.         #DEC                                                              Data
  5995.         ---------------------------------------------------------------------
  5996.         Syntax    #DEC cellname x
  5997.  
  5998.         Remarks   This command  decrements (reduces) the value  in cellname by
  5999.                   x.  If you don't supply x, then a value of 1 is assumed.
  6000.  
  6001.  
  6002.  
  6003.  
  6004.                                           90
  6005.  
  6006.  
  6007.  
  6008.  
  6009.         ---------------------------------------------------------------------
  6010.         #DELAY                                                    Input/Output
  6011.         ---------------------------------------------------------------------
  6012.         Syntax    #DELAY milliseconds
  6013.  
  6014.         Remarks   This  command   allows  you  to  insert   delays  into  your
  6015.                   application programs.
  6016.  
  6017.         Example   #DELAY 1000
  6018.  
  6019.  
  6020.         ---------------------------------------------------------------------
  6021.         #DELETE                                                           File
  6022.         ---------------------------------------------------------------------
  6023.         Syntax    #DELETE filename
  6024.  
  6025.         Remarks   This  command will  delete  filename from  the  disk (if  it
  6026.                   exists).
  6027.  
  6028.  
  6029.  
  6030.         ---------------------------------------------------------------------
  6031.         #DOS                                                          External
  6032.         ---------------------------------------------------------------------
  6033.         Syntax    #DOS command
  6034.  
  6035.         Remarks   This command  allows you to perform  a DOS command  or run a
  6036.                   program just  as if  you had  typed the  command at the  DOS
  6037.                   prompt.   There must be  enough memory available  to run the
  6038.                   program or the command will be ignored.
  6039.  
  6040.         Example   #DOS "dir *.INS"
  6041.  
  6042.  
  6043.         ---------------------------------------------------------------------
  6044.         #EDIT                                                     Input/Output
  6045.         ---------------------------------------------------------------------
  6046.         Syntax    #EDIT x,y cellname len prompt
  6047.  
  6048.         Remarks   This command displays prompt at position x,y on the  screen,
  6049.                   followed  by the contents of cellname.  You are then allowed
  6050.                   to edit the contents of cellname.  len is the maximum number
  6051.                   of characters which is  displayed and which you  are allowed
  6052.                   to enter or edit.
  6053.  
  6054.         Example   #EDIT 40,4 a1 6 "Invoice #"
  6055.  
  6056.         ---------------------------------------------------------------------
  6057.         #EDITERR                                                     Debugging
  6058.         ---------------------------------------------------------------------
  6059.         Syntax    #EDITERR 0/1
  6060.  
  6061.         Remarks   When  InstaCalc encounters  an error  in an  application, it
  6062.                   displays  an error message, then  calls up the  macro in the
  6063.                   macro editor.   The cursor is placed  on the line  where the
  6064.                   error occurred so that you can fix the problem.
  6065.  
  6066.  
  6067.  
  6068.                                           91
  6069.  
  6070.  
  6071.  
  6072.  
  6073.                   There may be times when you do not want InstaCalc to call up
  6074.                   the application for editing.  #EDITERR allows you to disable
  6075.                   this feature.
  6076.  
  6077.         Example   #EDITERR 0
  6078.  
  6079.  
  6080.  
  6081.         ---------------------------------------------------------------------
  6082.         #EXIT                                                          Control
  6083.         ---------------------------------------------------------------------
  6084.         Syntax    #EXIT
  6085.  
  6086.         Remarks   This command terminates the current application program.  If
  6087.                   the current program was called  by another program using the
  6088.                   #RUN  command,  then  control  is returned  to  the  calling
  6089.                   program.
  6090.  
  6091.  
  6092.         ---------------------------------------------------------------------
  6093.         #FOR / #NEXT                                                   Control
  6094.         ---------------------------------------------------------------------
  6095.         Syntax    #FOR cellname start end step
  6096.                     {some commands}
  6097.                   #NEXT 
  6098.  
  6099.         Remarks   This  command  creates a  loop which  can  perform a  set of
  6100.                   commands  a certain number of times.   The value of start is
  6101.                   placed in  cellname.  and as  long as the value  of cellname
  6102.                   does  not exceed  the  value of  end,  the set  of  commands
  6103.                   between the #FOR and  #NEXT command will be executed.   Each
  6104.                   time the  #NEXT command branches  back to the  #FOR command,
  6105.                   the  value  in cellname  will  be  incremented by  step  and
  6106.                   compared with end.
  6107.  
  6108.  
  6109.  
  6110.  
  6111.         ---------------------------------------------------------------------
  6112.         #GOTO                                                          Control
  6113.         ---------------------------------------------------------------------
  6114.         Syntax    #GOTO label
  6115.  
  6116.         Remarks   This command causes the program to continue execution at the
  6117.                   given label.   The label may  be either before or  after the
  6118.                   #GOTO, but it must be in the same program file.
  6119.  
  6120.         Example   #GOTO MyLabel
  6121.                   #OUTPUT 10,10 "Don't print this"
  6122.  
  6123.                   :MyLabel
  6124.                   #OUTPUT 10,10 "Print this instead"
  6125.  
  6126.  
  6127.  
  6128.  
  6129.  
  6130.  
  6131.  
  6132.                                           92
  6133.  
  6134.  
  6135.  
  6136.  
  6137.         ---------------------------------------------------------------------
  6138.         #IF / #ELSE / #ENDIF                                           Control
  6139.         ---------------------------------------------------------------------
  6140.         Syntax    #IF boolean formula
  6141.                     {some commands}
  6142.                   #ELSE
  6143.                     {some commands}
  6144.                   #ENDIF
  6145.  
  6146.         Remarks   This  command evaluates boolean formula,  and if it is true,
  6147.                   continues  executing  commands  until  #ELSE  or  #ENDIF  is
  6148.                   reached.   All commands between the #ELSE and #ENDIF will be
  6149.                   ignored.
  6150.  
  6151.                   If boolean formula is false,  then the program branches from
  6152.                   the #IF  to the #ELSE command (if there is one) and executes
  6153.                   the commands between #ELSE and #ENDIF.
  6154.  
  6155.  
  6156.  
  6157.  
  6158.         ---------------------------------------------------------------------
  6159.         #INC                                                              Data
  6160.         ---------------------------------------------------------------------
  6161.         Syntax    #INC cellname x
  6162.  
  6163.         Remarks   This command increments (increases) the value of cellname by
  6164.                   x.  If you do not specify x, then a value of 1 is assumed.
  6165.  
  6166.  
  6167.  
  6168.         ---------------------------------------------------------------------
  6169.         #INPUT                                                    Input/Output
  6170.         ---------------------------------------------------------------------
  6171.         Syntax    #INPUT x,y cellname len prompt
  6172.  
  6173.         Remarks   This command displays  prompt at position x,y on the screen.
  6174.                   You  are then  allowed  to enter  some  text which  will  be
  6175.                   entered  into  cellname.    len  is  the maximum  number  of
  6176.                   characters which you are allowed to enter.
  6177.  
  6178.         Example   #INPUT 40,4 a1 6 "Enter the sales for May "
  6179.  
  6180.  
  6181.         ---------------------------------------------------------------------
  6182.         #KEY                                                      Input/Output
  6183.         ---------------------------------------------------------------------
  6184.         Syntax    #KEY x,y cellname prompt maskchars
  6185.  
  6186.         Remarks   This command  displays prompt at position x,y, and waits for
  6187.                   you to press  a key.   The #KEY  command will  automatically
  6188.                   place  the keystroke  pressed into  cellname.   The returned
  6189.                   keystroke  will  be a  letter, number,  or  symbol if  it is
  6190.                   regular  ASCII.  If  it is a  special key like  a control or
  6191.                   alternate sequence, cursor  key, or function key, it will be
  6192.                   in angle brackets like this:  <Enter>, <PgUp>, <F1> or <^S>.
  6193.  
  6194.  
  6195.  
  6196.                                           93
  6197.  
  6198.  
  6199.  
  6200.  
  6201.                   maskchars is an  optional argument which allows you to force
  6202.                   #KEY  to  accept only  certain  characters.   If  you  leave
  6203.                   maskchars  blank, then #KEY will accept any key pressed.  If
  6204.                   maskchars is a character (or list of characters), then  #KEY
  6205.                   will  only accept  those  characters (upper  and lower  case
  6206.                   letters are treated as the same character).
  6207.  
  6208.         Example   #KEY 10,10 a1 "Continue?:" y n
  6209.  
  6210.  
  6211.         ---------------------------------------------------------------------
  6212.         #LOCATE                                                           Data
  6213.         ---------------------------------------------------------------------
  6214.         Syntax    #LOCATE column row
  6215.  
  6216.         Remarks   This  command allows you to move the cell pointer by several
  6217.                   rows and columns at a time.  column is the number of columns
  6218.                   you want to move to the right, and row is the number of rows
  6219.                   you want  to move  down.   You may set  row or  column to  a
  6220.                   negative value to move in the opposite direction, or to 0 if
  6221.                   you don't want to move either direction.
  6222.  
  6223.  
  6224.  
  6225.         ---------------------------------------------------------------------
  6226.         #MENU                                                     Input/Output
  6227.         ---------------------------------------------------------------------
  6228.         Syntax    #MENU x,y cellname helpline title
  6229.                   #HMENU x,y cellname helpline title
  6230.  
  6231.         Remarks   These commands (along with  the #MENUITEM command) allow you
  6232.                   to create and display customized menus from your application
  6233.                   programs (#MENU generates a vertical menu, #HMENU  generates
  6234.                   a horizontal menu).   The menu will be placed  on the screen
  6235.                   at position x,y, and title will  be placed at the top of the
  6236.                   menu.   Each item to be displayed in the menu are defined by
  6237.                   #MENUITEM  commands following the #MENU   command.  The help
  6238.                   line for  each item  will be  placed on the  screen on  line
  6239.                   number helpline.   When the  user selects an  item from  the
  6240.                   menu, InstaCalc  will enter  the item number  into cellname.
  6241.                   For example, if the user selects the 3rd item from the menu,
  6242.                   InstaCalc will enter the value 3 into cellname.  If the user
  6243.                   escapes from the menu  by pressing the <Esc>  key, InstaCalc
  6244.                   will enter the value 0 into cellname.
  6245.  
  6246.         Example   #MENU 20,10 A1 1 "My Menu"
  6247.                     #MENUITEM "Add" "Add a record"
  6248.                     #MENUITEM "Delete" "Delete a record"
  6249.                     #MENUITEM "Quit" "Exit from menu"
  6250.  
  6251.  
  6252.  
  6253.         ---------------------------------------------------------------------
  6254.         #MENUITEM                                                 Input/Output
  6255.         ---------------------------------------------------------------------
  6256.         Syntax    #MENUITEM item help
  6257.  
  6258.  
  6259.  
  6260.                                           94
  6261.  
  6262.  
  6263.  
  6264.  
  6265.         Remarks   This  command defines one of the items  in a menu.  item and
  6266.                   help are both  text strings  enclosed in quotes.   item  and
  6267.                   help can also be cell  references or text formulas  enclosed
  6268.                   in square  brackets to  allow  you to  build menu  selection
  6269.                   items on the fly.
  6270.  
  6271.  
  6272.         ---------------------------------------------------------------------
  6273.         #OUTPUT                                                   Input/Output
  6274.         ---------------------------------------------------------------------
  6275.         Syntax    #OUTPUT x,y line
  6276.  
  6277.         Remarks   This command  allows your application program  to write text
  6278.                   to the  screen.  #OUTPUT  will display line at  column x and
  6279.                   row y on the screen.  x must  be in the range 1 to 80, and y
  6280.                   must be in the range 1 to 25.
  6281.  
  6282.         Example   #OUTPUT 40,4 "Hi there" 
  6283.  
  6284.  
  6285.         ---------------------------------------------------------------------
  6286.         #PASSWORD                                                 Input/Output
  6287.         ---------------------------------------------------------------------
  6288.         Syntax    #PASSWORD x,y cellname len prompt
  6289.  
  6290.         Remarks   This  command is  exactly  the same  as the  #INPUT command,
  6291.                   except that keystrokes which you enter are not displayed.
  6292.  
  6293.         Example   #PASSWORD 40,4 a1 6 "Enter the magic word "
  6294.  
  6295.         ---------------------------------------------------------------------
  6296.         #PRINT / #PRINTLN                                         Input/Output
  6297.         ---------------------------------------------------------------------
  6298.         Syntax    #PRINT line
  6299.                   #PRINTLN line
  6300.  
  6301.         Remarks   These two commands allow  your program to send line  to your
  6302.                   printer.    The  only  difference  between  the  #PRINT  and
  6303.                   #PRINTLN commands is that the #PRINTLN command sends a CR/LF
  6304.                   command to the printer after it has sent line.
  6305.  
  6306.                   If you want  to print numbers,  they must be converted  to a
  6307.                   string  first.  The best way to  do this is with the @FORMAT
  6308.                   function,  which allows you to  format the number  in any of
  6309.                   InstaCalc's formats.
  6310.  
  6311.         Example   #PRINT "Hi there"
  6312.  
  6313.         ---------------------------------------------------------------------
  6314.         #REPEAT / #UNTIL                                               Control
  6315.         ---------------------------------------------------------------------
  6316.         Syntax    #REPEAT
  6317.                     {some commands}
  6318.                   #UNTIL boolean formula
  6319.  
  6320.         Remarks   This  command repeats a command  or set of  commands until a
  6321.                   condition  becomes  true.   InstaCalc executes  the commands
  6322.  
  6323.  
  6324.                                           95
  6325.  
  6326.  
  6327.  
  6328.  
  6329.                   after  the  #REPEAT until  the  #UNTIL  command is  reached.
  6330.                   InstaCalc then  evaluates boolean formula, and branches back
  6331.                   to the #REPEAT command if it is false.   boolean formula may
  6332.                   be any legal InstaCalc formula which returns a TRUE or FALSE
  6333.                   value.
  6334.  
  6335.  
  6336.  
  6337.  
  6338.         ---------------------------------------------------------------------
  6339.         #RESTORE                                                  Input/Output
  6340.         ---------------------------------------------------------------------
  6341.         Syntax    #RESTORE
  6342.  
  6343.         Remarks   This  command erases  all boxes  and restores  the InstaCalc
  6344.                   screen.    This command  should be  used by  all application
  6345.                   programs before exiting.
  6346.  
  6347.  
  6348.  
  6349.  
  6350.         ---------------------------------------------------------------------
  6351.         #RUN                                                          External
  6352.         ---------------------------------------------------------------------
  6353.         Syntax    #RUN application
  6354.  
  6355.         Remarks   This command  allows you to start  running another InstaCalc
  6356.                   application file  (.MAC) as  a subroutine.   The other  .MAC
  6357.                   file  will be  loaded into  memory and  executed.   When the
  6358.                   other .MAC file is finished running, it will be removed from
  6359.                   memory, and  control will  return to the  program containing
  6360.                   the #RUN command.
  6361.  
  6362.         Example   #RUN myprog
  6363.  
  6364.  
  6365.         ---------------------------------------------------------------------
  6366.         #SETCOLOR                                                 Input/Output
  6367.         ---------------------------------------------------------------------
  6368.         Syntax    #SETCOLOR item background foreground
  6369.  
  6370.         Remarks   This command allows you to set and change the various colors
  6371.                   which other I/O  commands use  when writing  to the  screen.
  6372.                   item  is a value corresponding to a different item which can
  6373.                   be displayed:
  6374.  
  6375.                   item DISPLAY
  6376.                   1    Frame around the menu
  6377.                   2    Title of the menu
  6378.                   3    Main body of the menu
  6379.                   4    Moving bar of the menu
  6380.                   5    Highlighted select character in the menu
  6381.                   6    Help line for the menu
  6382.                   7    Prompt for #EDIT, #INPUT, #KEY
  6383.                   8    Editing/output field
  6384.                   9    Frame around the window
  6385.                   10   The title of the window
  6386.  
  6387.  
  6388.                                           96
  6389.  
  6390.  
  6391.  
  6392.  
  6393.                   11   The body of the window
  6394.  
  6395.                   background  and foreground are  values corresponding  to the
  6396.                   background and foreground colors to use:
  6397.  
  6398.                   0=Black             8=Dark Gray
  6399.                   1=Blue              9=Light Blue
  6400.                   2=Green             10=Light Green
  6401.                   3=Cyan              11=Light Cyan
  6402.                   4=Red               12=Light Red
  6403.                   5=Magenta           13=Light Magenta
  6404.                   6=Brown             14=Yellow
  6405.                   7=Light Gray        15=White
  6406.  
  6407.         Example   #SETCOLOR 4 1 15
  6408.  
  6409.  
  6410.  
  6411.         ---------------------------------------------------------------------
  6412.         #STEP                                                        Debugging
  6413.         ---------------------------------------------------------------------
  6414.         Syntax    #STEP 0/1
  6415.  
  6416.         Remarks   This single  command allows  you to  single step  through an
  6417.                   application,  set conditional  breakpoints, and  inspect and
  6418.                   edit cells while your application is running.
  6419.  
  6420.                   When the command #STEP 1 is encountered in a program, single
  6421.                   stepping is enabled.  When you  are in single step mode, the
  6422.                   bottom  line of the  screen will  display the  prompt "SS:",
  6423.                   along  with the next line of the application to be executed.
  6424.                   You must  press a key  (the space bar  is good for  this) to
  6425.                   execute each line of the program.
  6426.  
  6427.                   When the command #STEP 0 is encountered in a program, single
  6428.                   stepping  is  disabled and  execution  of  the program  will
  6429.                   continue normally.
  6430.  
  6431.  
  6432.         ---------------------------------------------------------------------
  6433.         #UPDATE                                                   Input/Output
  6434.         ---------------------------------------------------------------------
  6435.         Syntax    #UPDATE 0/1
  6436.  
  6437.         Remarks   This command  toggles InstaCalc screen updating  on and off.
  6438.                   This  command  is  useful   to  keep  screen  updating  from
  6439.                   overwriting  boxes and  windows  which your  application has
  6440.                   placed on screen.  #UPDATE  0 disables screen updating,  and
  6441.                   #UPDATE 1 enables screen  updating.  #UPDATE can be  used at
  6442.                   any point in the application to turn updating on or off.
  6443.  
  6444.  
  6445.  
  6446.         ----------------------------------------------------------------------
  6447.         #WAIT                                                     Input/Output
  6448.         ----------------------------------------------------------------------
  6449.         Syntax    #WAIT x,y prompt
  6450.  
  6451.  
  6452.                                           97
  6453.  
  6454.  
  6455.  
  6456.  
  6457.         Remarks   This  command displays  prompt at  screen position  x,y, and
  6458.                   then waits for you to press  a key.  This command is similar
  6459.                   to  the #KEY command, except that the keystroke is not saved
  6460.                   for processing.
  6461.  
  6462.  
  6463.  
  6464.  
  6465.         ---------------------------------------------------------------------
  6466.         #WHILE / #ENDWHILE                                             Control
  6467.         ---------------------------------------------------------------------
  6468.         Syntax    #WHILE boolean formula
  6469.                     {some commands}
  6470.                   #ENDWHILE 
  6471.  
  6472.         Remarks   This command  repeat a command or set of commands as long as
  6473.                   boolean formula is TRUE.   If boolean formula is  FALSE when
  6474.                   the  #WHILE  is first  reached,  the  commands  will not  be
  6475.                   executed at all.
  6476.  
  6477.                   The #ENDWHILE command will cause execution to branch back to
  6478.                   #WHILE so that boolean formula may be tested again.
  6479.  
  6480.  
  6481.  
  6482.         ---------------------------------------------------------------------
  6483.         #WINDOW                                                   Input/Output
  6484.         ---------------------------------------------------------------------
  6485.         Syntax    #WINDOW x1,y1 save title
  6486.  
  6487.         Remarks   This command is a special version of the #BOX command.  This
  6488.                   command,  along with  the  #WINTEXT command,  allows you  to
  6489.                   easily create  text windows without having  to calculate how
  6490.                   wide  and tall the box should be, or what screen coordinates
  6491.                   to use to display text in  the box.  This command displays a
  6492.                   box on  the screen.   The upper  left corner of  the box  is
  6493.                   located at screen  position x1,y1, and  the position of  the
  6494.                   lower right  corner of  the box  is calculated  by InstaCalc
  6495.                   based  on the number  and length  of the  following #WINTEXT
  6496.                   commands.    save  determines  whether  InstaCalc  saves the
  6497.                   contents of the screen  under the box before displaying  it.
  6498.                   If  save equals 0, then  the screen contents  are not saved.
  6499.                   If  save equals 1, then  the screen contents  are saved, and
  6500.                   can be restored using the #CLEARBOX command.
  6501.  
  6502.         Example   #WINDOW 10,5 1 "My Window"
  6503.                   #WINTEXT "Here is some text"
  6504.                   #WINTEXT "Some more text"
  6505.  
  6506.         ---------------------------------------------------------------------
  6507.         #WINTEXT                                                  Input/Output
  6508.         ---------------------------------------------------------------------
  6509.         Syntax    #WINTEXT line
  6510.  
  6511.         Remarks   This command displays line  in the currently defined window.
  6512.                   #WINDOW will automatically adjust the  size of the window to
  6513.                   hold the width of line.
  6514.  
  6515.  
  6516.                                           98
  6517.